A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me
Answer Posted / radhakant kumar
awk '{if(NR==1) print $0}' filename
Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is the command to find hidden files in the current directory?
Differentiate cmp command from diff command.
What are file commands?
What is a command and examples?
Write a command that will display files in the current directory, in a colored, long format.
Which unix command to make a new directory?
What is the difference between cat command and more command?
What is pipe command in unix?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Explain mount and unmount command.
Why is grep called grep?
Who wrote grep?
Is it inbetween or in between?
Are you in or at the office?
What is used to type command?