/ Published in: Bash
This filters a csv file, printing out the first, second, fifth, and seventh column only when the third column is "USD/JPY" and the fourth is "Q". Note this is awk, but there wasn't a selection for it.
Expand |
Embed | Plain Text
gawk -F, "{ if($3==\"USD/JPY\" && $4==\"Q\") printf \"%s %s,%s,%s \n\",$1,$2,$5,$7 }" data.csv
You need to login to post a comment.
