Hi,
I have a text file in the following format
field1,field2,"fie,ld,3",field4,"fie,ld,5"
I need to grab numerous fields from the file, but am struggling to find a way to protect the field-seperator if it appears in quotes.
E.g
awk -F, '{print $3}'
I need "fie,ld,3"
and not
fie
any ideas?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
I have a text file in the following format
field1,field2,"fie,ld,3",field4,"fie,ld,5"
I need to grab numerous fields from the file, but am struggling to find a way to protect the field-seperator if it appears in quotes.
E.g
awk -F, '{print $3}'
I need "fie,ld,3"
and not
fie
any ideas?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."