How do I read the first line of a file using cat?
cat
Adding one more obnoxious alternative to the list:
perl -pe'$.<=1||last' file # or perl -pe'$.<=1||last' < file # or cat file | perl -pe'$.<=1||last'