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
Which command is used to kill the last background job?
What is the first character of the output in ls l command?
Who command in unix operating system?
Explain the steps that a shell follows while processing a command.
What is time_t?
How do I use grep to find a file?
How to find $ai_serual resolved path by using unix
What is the pipe command?
What is the command to compare two files in unix?
What is the behavioural difference between cmp and diff commands?
What is the use of the tee command?
Enlist some filename manipulation commands in unix.
What is awk good for?
Which command is used to copy files?
What are bash commands?