I have a directory with a group of CSV files. All files have the same column headers. I need to extract values in a certain column from all files.
The common part in files names is OCS_mobfwref-oam_d01_2014080*
I have a directory with a group of CSV files. All files have the same column headers. I need to extract values in a certain column from all files. The common part in files names is |
|||||||||
closed as unclear what you're asking by derobert, Ramesh, Karlson, jasonwryan, Braiam Aug 7 '14 at 21:37Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||||||
|
To extract from the 3rd column for example, you can do:
This only works if there are no un-escaped comma's! If you want to remove the headers, do:
|
|||||||||
|
the same in awk, with a head in first 2 lines, extracting the third field, assuming filed separator is ',' (comma).
|
||||
|