How can I view only the first n lines of the file?
Did you try the man page for head?
head -n 10 filename
Head is a fine tool, but you might also try:
sed 10q path
For code golf fanatics, sed is always better than head :)
Did you try the man page for head?
head -n 10 filename
Head is a fine tool, but you might also try:
sed 10q path
For code golf fanatics, sed is always better than head :)