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 |
Why we are using UNIX OS when we are doing the testing in our application?
Is grep faster than awk?
Is command prompt unix?
What command is used to switching between users in unix?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
What is the difference between cat and more command?
What is “chmod” command?
Explain ‘system calls’ with respect to unix commands?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
what is the difference between pipe(|) and tee command..
What is the difference between awk and grep?
to list a particular line in the file