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
How do I open a port?
What is sed awk grep?
What is $0 bash?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Can you enlist some commonly used network commands?
Is grep faster than awk?
What command will change your prompt to myprompt?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is grep and how do you use it?
What is ctrl d?
What does pipe () return?
How do you repeat a command in terminal?
What is the difference between cat command and more command?
What is difference between grep and find command in unix?
what is the advaantage of each user having its own copy of the shell?