$ sed '7q' filename
In the above command, the 'q' is one of the sed commands.
This command instructs sed to stop processing input from
filename. Thus, the above command will print the first 7 lines
in filename, and then quit.
@Trevor Interesting one, thanks for sharing.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.