How do I read the first line of a file using cat?
cat
You don't need cat.
head -1 file
will work fine.