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
How many unix commands are there?
Explain ‘library functions’ with respect to unix commands?
What command is used to switching between users in unix?
Are you in or at the office?
What is the size of time_t?
What is grep and how do you use it?
What do chgrp command do?
What does 'mkdir' command do in UNIX?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
how to sort the content of the file based on numeric values
What does this command do,"$more readme.txt“?
What is difference between grep and find command in unix?
Explain mount and unmount command.
What are reported commands?
How to display no of records in oracle using unix command?