How to get the last ten lines of a file using awk utility?
Answer Posted / ajay
awk '{x[NR]=$0} END{for (i=NR-10;i<=NR;i++) print x[i]}'
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
Is it inbetween or in between?
What is the pipe command?
Enlist some filename manipulation commands in unix.
What is the first character of the output in ls l command?
What is ‘ps’ command for?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is the comma to display different lines that are found when compare two files?
Is grep faster than awk?
What is used to type command?
What are the dos commands?
What are file commands?
How to find $ai_serual resolved path by using unix
How do I find previous commands in unix?
What is the use of cut command in unix?
What are reported commands?