How do I read the first line of a file using cat?
cat
You don't, use head instead.
head
head -n 1 file.txt