[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Suggestion
From: |
Antonio Vega |
Subject: |
Suggestion |
Date: |
Fri, 12 Jun 2009 10:01:35 -0500 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
gawk is excellent.
I would like to see -Fcsv commnad line option.
The idea is that gawk can both read and write csv file with this flag.
There must be libraries around to take advantage of.
Seems like thwy canbe found in
[1]http://en.wikipedia.org/wiki/CSV_application_support
An explicit different OFS must be specified if wanted alternative output
separator (use at their own risk)
Example (taken from wikipedia)
1997 Ford E350 ac, abs, moon 3000.00
1999 Chevy Venture "Extended Edition" 4900.00
1996 Jeep Grand Cherokee MUST SELL!
air, moon roof, loaded 4799.00
The above table of data may be represented in CSV format as follows:
1997,Ford,E350,"ac, abs, moon",3000.00
1999,Chevy,"Venture ""Extended Edition""","",4900.00
1996,Jeep,Grand Cherokee,"MUST SELL!
air, moon roof, loaded",4799.00
References
1. http://en.wikipedia.org/wiki/CSV_application_support
- Suggestion,
Antonio Vega <=