Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi There,
I have a strange problem:The csv which i need to process has 3 columns as shown below
Test.csv
Column1,Coulmn2,Column3
"Floor 1, Suite 2, Rack3",122333,222222The command
cut -d, -f 2,3 Test.csv > Test2.csv
gives Test2.csv
Coulmn2,Column3
Suite 2, Rack3But i need
Coulmn2,Column3
122333,222222
Is this possible.Please help

Get rid of everything in quotes and keep everything after the the first comma.
cat test.csv | cut -d'"' -f3 | cut -d, -f2-

![]() |
Awk - split lines into ar...
|
Shell Script to copy part...
|
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |