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 |
write grep commands to select the lines that have exactly two characters
their is a file1,file2 and i want to append file1 data to file2?
How to identify whether a file is normal file or directory?
Is grep faster than awk?
How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks
6 Answers Polaris, Tech Mahindra,
What does awk stand for?
What is awk good for?
what do you understand by 'building block primitive'?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
how to delete entire records in unix ?
What is the difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,
How does shebang work?