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 |
What is the use of finger command?
What is the command to check ports active in UNIX?
How do I use grep to search for a file?
what is the advaantage of each user having its own copy of the shell?
can we use cat command as an editor ..???
how many types of file in unix?
34 Answers MNC, TCS,
what is the difference between KILL and KILL -9?
5 Answers Informatica, Nutanix,
in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?
How do you copy a directory with many files and folders into another directory?
what is the command to list all files in a directory, including the hidden files in UNIX ?
What is pipe command in unix?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,