anisha3 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks!!!! I have many files and I need 21 and 4 column of every file to be printed to a single file...I used this command but its printing in single files...
perl -F"\t" -lane '$, = ","; print $F[0], $F[4]' AF1.gcount > Af1gcoun +t.csv
Please help me how can i make changes and get my desired output...my out put should have all the columns printed with headers of files name..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing columns to a single file
by BrowserUk (Patriarch) on Mar 05, 2014 at 15:21 UTC | |
by Anonymous Monk on Mar 05, 2014 at 15:55 UTC | |
by BrowserUk (Patriarch) on Mar 05, 2014 at 16:05 UTC | |
| |
|
Re: Printing columns to a single file
by kennethk (Abbot) on Mar 05, 2014 at 15:35 UTC | |
by anisha3 (Novice) on Mar 05, 2014 at 16:06 UTC | |
by kennethk (Abbot) on Mar 05, 2014 at 16:55 UTC |