How do I read the first line of a file using cat?
cat
There are many different ways:
sed -n 1p file head -n 1 file awk 'NR==1' file