Joined: 18 May 2008 Posts: 4756 Location: Kingwood, TX
Posted: Fri 14 Sep 2012, 08:58 Post subject:
FNR is basically the line number. The trick to printing all fields after $1 is to set $1 to "" and print $0 (or you can loop from 2 to NF). This technique is similar in bash/sh to using while read LINE; do set $LINE; shift; echo $@.... _________________ Check out my github repositories. I may eventually get around to updating my blogspot.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum