i have to use awk to print out 4 different columns in a csv file. The problem is the strings are in a $x,xxx.xx format. When I run the regular awk command.
awk -
The data file:
$ cat data.txt "$307.00","$132.34","$30.23"
The AWK script:
$ cat csv.awk BEGIN { RS = "," } { gsub("\"", "", $1); print $1 }
The execution:
$ awk -f csv.awk data.txt $307.00 $132.34 $30.23