umasuresh has asked for the wisdom of the Perl Monks concerning the following question:
But it prints the whole line along with the first 3 columns.perl -pane 'print "$F[0]\t$F[1]\t$F[2]";' file1.txt
How do I fix this? Thanks much!prints: chr1 58963 Gchr1 58963 G G 10 0 10 + 1 ^+. 8 __file1__ chr1 58963 G G 10 0 10 1 ^+. + 8
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using command line autosplit option
by Fletch (Bishop) on Feb 03, 2011 at 19:36 UTC | |
|
Re: using command line autosplit option
by toolic (Bishop) on Feb 03, 2011 at 19:53 UTC | |
by umasuresh (Hermit) on Feb 03, 2011 at 20:01 UTC |