问题
I tried head +10 and it didn't work.
回答1:
Did you try the manpage for head?
head -n 10 filename
回答2:
Head is a fine tool, but you might also try:
sed 10q path
For code golf fanatics, sed is always better than head :)
来源:https://stackoverflow.com/questions/1411070/how-can-i-view-only-the-first-n-lines-of-the-file