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 a shell in Unix? Name some common Unix shells.
Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex student 1423 Feb 21 14:01 tasks What command can Alex use to give everyone permission to write to the file? What will the ls -l command display if he does so?
what is Online(STM) and offline diagnostics in HP-UX?
What is nr in awk command?
How many unix commands are there?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
What is the command to find hidden files in the current directory?
How to install scsi driver in unix? give me explanation clearly?
What is the use of find command in unix?
What is unix command?
What is in grep command?
What is grep command in unix with examples?