Louis I. answered 05/05/19
Computer Science Instructor/Tutor: Real World and Academia Experienced
The easiest way I can think of without using head / tail is by using sed.
Example launch below displays the 4th line of file, if it has a 4th line, that is.
sed -n -e "4p" file
The -n option suppresses the default echo of sed's input, and the "np" command explicitly displays/prints the nth line of input ...