View Single Post
Old 11-07-2018, 12:15 PM   #2
Supremacy Member
davidktw's Avatar
Join Date: Apr 2010
Posts: 9,682
You can try activestate perl or gawk on windows

perl -ne '$a=split /,/;' < input.csv
For perl, you can do this
perl -ne '@a=split /,/; system("process_data", "-name", $a[0], "-value", "-o", sprintf("line_%04d.dat", $a[1])) unless ($a[0] != "name" and $a[1] != "value")'

Last edited by davidktw; 11-07-2018 at 02:27 PM..
davidktw is offline   Reply With Quote