Besides the awk
answer by @Jerry, there are other alternatives:
Using cut
(assumes tab delimiter by default):
cut -f32-58 foo >bar
Using perl
:
perl -nle '@a=split;print join "\t", @a[31..57]' foo >bar
Besides the awk
answer by @Jerry, there are other alternatives:
Using cut
(assumes tab delimiter by default):
cut -f32-58 foo >bar
Using perl
:
perl -nle '@a=split;print join "\t", @a[31..57]' foo >bar