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 are awk commands?
What command would users use to see what file one page at a time in UNIX?
what is the cmd to remove the comment lines from a file and to display the original text without comments? thanks in advance......
How to get a particular string as your prompt ? Give syntax of that command?
What is clustering in HP and how it's work?
How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?
What does touch command do in unix?
How can i know my Filesystem and its current usage in my prod UNIX system?
What is the general format of unix command syntax?
Where can I get the free download of Unix by Yeswant Kanetkar?
Why is it called grep?
What is grep r?