I have a file with COMMA seperated fields but with embedded COMMA inside a field ex.
Jim,"20 main street",555-1313,60
Tom,"10 washington, Madison, NY-100010",555-1212,26
I want to examine the content of each field and take action but I don't want awk to split on embedded COMMAs
cat file | awk -F"," '{print $2}'
Will I get
"20 main street"
"10 washington
I really want to get (i.e. ignore embedded COMMA)
"20 main street"
"10 washington, Madison, NY-100010"
Thanks
Jim,"20 main street",555-1313,60
Tom,"10 washington, Madison, NY-100010",555-1212,26
I want to examine the content of each field and take action but I don't want awk to split on embedded COMMAs
cat file | awk -F"," '{print $2}'
Will I get
"20 main street"
"10 washington
I really want to get (i.e. ignore embedded COMMA)
"20 main street"
"10 washington, Madison, NY-100010"
Thanks