How to get the last ten lines of a file using awk utility?
Answer / ajay
awk '{x[NR]=$0} END{for (i=NR-10;i<=NR;i++) print x[i]}'
| Is This Answer Correct ? | 7 Yes | 5 No |
What will the following command do?
Will rm -r* removes hidden files?
what do you understand by 'building block primitive'?
What is an Environment Variable?
How do I clear my terminal history?
what is virtual machine?
What is “chmod” command?
Explain command to show the space allocation of files?
what is the difference between commmands cmp and diff?
What is awk command used for?
How do I delete files from command prompt?
What are file permissions in Unix, and how are they represented?