Saturday, 1 December 2012
How to prompt first three lines of the file?
How to show first three lines of the file?
head command
is the answer
Lets show usage of this command on file.txt example
head -n X file.txt
where X is number of last lines which we want to prompt
head -n 3 file.txt
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment