In order to output the Nth line from a file you can use:
more +Nfile | head -n 1
This entry was posted on October 2, 2006 at 12:59 pm and is filed under Unix/Linux. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
4 Responses to “Unix/Linux – output the Nth line from a file”