Use double quotes as field separator in AWK -


how can use double quotes field separator?

awk -v val=$num 'begin { fs='"';}{}' 

i using above statement encountered error.

two ways:

awk -v val=$num -f'"' '{}'  awk -v val=$num 'begin { fs="\"";}{}' 

Comments

Popular posts from this blog

c++ - End of file on pipe magic during open -

basic authentication with http post params android -

data.table making a copy of table in R -