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 |
Does cp command overwrite files?
what does the command 'wc' do?
What is {} in find command?
What is the function of grep command in unix?
what is shell?
what is the shell for dos,nt operating systems?
Which command should you use to find the remaining disk space in unix server?
what do you understand by 'building block primitive'?
How many unix commands are there?
what is the difference between "cron" command and "at" command?
How do I clear my terminal history?
what are the different commands used to view the contents of a file?