SyntaxFix
Write A Post
Hire A Developer
Questions
There are many different ways:
sed -n 1p file head -n 1 file awk 'NR==1' file