Batch copy files, csv specific columns

July 2, 2009 at 16:07:53
Specs: Windows XP
Hi,
I have a csv file with 37 columns.

I'd like to write a batch file that create a new csv file but with certain columns like :

Column a,b,c,d,a(repeated), etc

Is this possible ?

Best regards,
Dinis Campos


See More: Batch copy files, csv specific columns

Report •


#1
July 3, 2009 at 09:40:35
of course its possible. If you can download gawk for windows(see my sig)
c:\test> gawk "{print $1,$2,$3,$1,$2,$3}" file.txt

GNU win32 packages | Gawk


Report •
Related Solutions


Ask Question