Saturday, April 17, 2021

Linux print nth line of file

I have to google this all the time. I guess that the following article answered it for me back in Nov 2020. The answer includes piping the output of head into tail, using sed, or using awk.
https://linuxhandbook.com/display-specific-lines/
Honestly, the unrelated hits from searching for this are fascinating in their own right:
https://www.bing.com/search?q=linux+print+nth+line+of+file

No comments: