sajad torkamani

Print the first 10 lines of file (10 is default):

cat /some/file.txt | head

Print the first 20 lines of file:

cat /some/file.txt | head -n 20

Tagged: Unix