I need to see the Nth line in a file


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » System Level

I need to see the Nth line in a fileLast Modified: Oct 6, 2016, 2:40 pm
If you want to extract just the th line in a , you can use both head and tail to grab it, eg:

head -n 5 file.txt | tail -n 1


2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST