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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -