Problem:
Imagine a scenario where you need to print or display only the nth line of the file. For e.g, suppose you have a file with 50000 line and you want to print just the 100th line.
Solution.
My favorite way to do so is by using a combination of tail and head command. Here is the commands that can be used for the mentioned purpose:
tail -n +100 filename | head -n1