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 create a directory?
What is the functionality of a top command?
What is the first character of the output in ls l command?
What is the general format of unix command syntax?
What does this command do,"$more readme.txt“?
Explain ‘library functions’ with respect to unix commands?
What do know about tee command?
Explain command to view process running?
What do know about tee command and its usage?
Describe the zip/unzip command using gzip.
Is it inbetween or in between?
What are file commands?
Who invented grep?
Explain ‘system calls’ with respect to unix commands?
How does the system know where one command ends and another begins?