Tag: awkParse a CSV File Using AwkJuly 06, 2011 To perform text processing on a CSV file row-by-row, you can use awk. A single row can be split into columns using the cat myfile.csv | awk '{ split($0,a,","); print a[1]","a[3]; }'
It is important to note that awk uses one-based array indexing (not zero-based). Categories: Uncategorized Tags: awk |
SearchCategories
TagsR acm apt awk bash benchwork bibtex c compiz dd-wrt dia dvd eeebuntu eeepc eps excel fedora firefox flash freebsd gnome hostname iptables java kde latex mac os x mail merge mediawiki mercurial mrtg nvidia pdf phidgets printer putty pxe python route scenery sed snmp ssh structures subnet subversion sudo ubuntu vegetarian vim visio windows word wrt54gl x11 yum Years |