A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me
Answers were Sorted based on User's Feedback
Answer / 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 |
Which unix command lists files/folders in alphabetical order?
Describe the usage and functionality of the command rm –r * in unix?
What is the Unix file system hierarchy?
describe the escaping sequence characteres in unix
What is rmdir command?
the difference between a soft link and a hard link?
what these two commands prints "echo test","cat test"?
what is the command to print last 8 lines of any text file.
29. How to display top 10 users Who | head -10 | wc –w
In Unix file permissions what does the second field denotes?
what are the different commands used to view the contents of a file?
Write a command to display a file’s contents in various formats?