For the CSV data, each field enclosed in double quotes, separated by commas. Such as "11", "22", said the two domains: 11 with 22

If the field itself contains ", then use" "means. For example, "", "111", "222", "22" for three domains, the first one: null value; second: 111; No. 3: 222 "," 22

Use AWK, how the various domains of the output, for example, for "", "111", "222", "22"; output of the first three field values.

link|improve this question
What is the reason for the awk restriction? i.e. is it the only thing available, or are you looking for a quick command line way of doing this, or something else? – skarface Mar 11 '10 at 2:14
There's no way to distinguish whether "222", "22" is one field or two. It would always be considered two. Why would 111", "222 not be one field? Perhaps your third field looks like: "222"",""22" with the doubled double quotes each representing one embedded double quote. en.wikipedia.org/wiki/Comma-separated_values#Basic_Rules – Dennis Williamson Mar 17 '10 at 17:56
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.