if your file is 'input'. If its a windows system, do aperl -lane 'print "@F[0,2..$#F-2,$#F]"' input
instead.perl -lane "print qq{@F[0,2..$#F-2,$#F]}" input
In reply to Re: reading from file
by mwah
in thread reading from file
by johny
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |