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
What happens when we execute a unix command?
What is the search command in unix?
Differentiate cmp command from diff command.
What is the use of the tee command?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is the size of time_t?
What is command substitution?
What does grep v do?
What is the use of finger command?
Write a command to kill the last background job?
What does this command do,"$more readme.txt“?
What's a command word?
What is the difference between cat command and more command?
Which command can you use to find the currently running process in unix server?
What is in grep command?