A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me
Answer Posted / raja
head -n <filename>
here n for no.of records we want.
ur quention my ans is
head -1 <filename>
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is grep r?
What are file commands?
Is grep faster than awk?
What are the general commands in using unix os for a beginner?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How can you see the command line history?
How do you repeat a command in terminal?
Why is shebang used?
Can you explain a little bit about command substitution?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
How does pipe () work?
How do I find previous commands in unix?
How to display no of records in oracle using unix command?
Differentiate cmp command from diff command.
What do chmod command do?