Computing.Net > Forums > Programming > Batch copy files, csv specific columns

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch copy files, csv specific columns

Reply to Message Icon

Name: DinisCampos
Date: July 2, 2009 at 16:07:53 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: July 3, 2009 at 09:40:35 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch copy files, csv specific columns

Batch copy files, csv specific www.computing.net/answers/programming/batch-copy-files-csv-specific/17502.html

Batch - Copy Files using .txt List www.computing.net/answers/programming/batch-copy-files-using-txt-list/18010.html

Batch copy files on txt file incl. subdir. www.computing.net/answers/programming/batch-copy-files-on-txt-file-incl-subdir/20053.html