|
the 'head -2' pulls the top two lines of the text file, the 'tail -1l' pulls the bottom of those 2, so it's the second line of the file. Yogesh's method is cleaner and doesn't require external unix commands, but I couldn't remember the awk variable to get the current row number..
|