Skip to main content

(Please don't downvote this, it's a serious answer!) Generally perl replaces awk/sed/grep et. al., and is much more portable (as well as just being a better penknife).

perl -lane 'print "@F[8..$#F]"' 

Timtowtdi applies of course.

(Please don't downvote this, it's a serious answer!) Generally perl replaces awk/sed/grep et. al., and is much more portable (as well as just being a better penknife).

perl -lane 'print "@F[8..$#F]"' 

Timtowtdi applies of course.

Generally perl replaces awk/sed/grep et. al., and is much more portable (as well as just being a better penknife).

perl -lane 'print "@F[8..$#F]"' 

Timtowtdi applies of course.

-l as suggested by @glenn jackman
Source Link
bobbogo
  • 15.6k
  • 3
  • 55
  • 60

(Please don't downvote this, it's a serious answer!) Generally perl replaces awk/sed/grep et. al., and is much more portable (as well as just being a better penknife).

perl -anelane 'print "@F[8..$#F]"' 

Timtowtdi applies of course.

(Please don't downvote this, it's a serious answer!) Generally perl replaces awk/sed/grep et. al., and is much more portable (as well as just being a better penknife).

perl -ane 'print "@F[8..$#F]"' 

Timtowtdi applies of course.

(Please don't downvote this, it's a serious answer!) Generally perl replaces awk/sed/grep et. al., and is much more portable (as well as just being a better penknife).

perl -lane 'print "@F[8..$#F]"' 

Timtowtdi applies of course.

Source Link
bobbogo
  • 15.6k
  • 3
  • 55
  • 60

(Please don't downvote this, it's a serious answer!) Generally perl replaces awk/sed/grep et. al., and is much more portable (as well as just being a better penknife).

perl -ane 'print "@F[8..$#F]"' 

Timtowtdi applies of course.