views:

64

answers:

2

I tired head +10 and it didn't work. thanks

+5  A: 

Did you try the manpage for head?

head -n 10 filename

kwatford
To clarify, 'man head'
Brian Agnew
+2  A: 

Head is a fine tool, but you might also try:

sed 10q path

For code golf fanatics, sed is always better than head :)

William Pursell
can you explain this line please?
vehomzzz
sed reads a line, then prints it. When it gets to line 10, it prints the line and then quits.
William Pursell