Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field assignment doesn't work in CSV mode #111

Open
twhitehead opened this issue Apr 20, 2024 · 2 comments
Open

Field assignment doesn't work in CSV mode #111

twhitehead opened this issue Apr 20, 2024 · 2 comments

Comments

@twhitehead
Copy link

$ echo 1 2 3 | frawk '{ $1 = 0; print $0 }'
0 2 3

vs

$ echo 1,2,3 | frawk -i csv '{ $1 = 0; print $0 }'
1,2,3
@ghuls
Copy link
Contributor

ghuls commented Jun 6, 2024

I guess this is expected according to the documentation:

    -i, --input-format <csv|tsv>
            Input is split according to the rules of (csv|tsv). $0 contains the unescaped line.
            Assigning to columns does nothing [possible values: csv, tsv]

@twhitehead
Copy link
Author

Good point. Guess this should be a feature request then and not a bug report. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants