argv@sri-spam.ARPA (AAAARRRRGGGGv) (06/13/86)
---- I know this was discussed to death a long time ago, but can someone send me the [most efficient] awk script that prints out a specified line from a file? I remember it was determined that an awk script did the best job, but I don't remember. Please send mail... dan -------- argv@sri-spam.arpa
ark@alice.UucP (Andrew Koenig) (06/14/86)
To print line 37 in awk: awk 'NR == 37' To print line 37 in sed: sed -n 37p
farren@hoptoad.uucp (Mike Farren) (06/16/86)
Or: head -linenum <filename> | tail -1