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
Explain how to use grep command to list find the records of a file containing 10 different strings?
Explain ‘system calls’ with respect to unix commands?
What does touch command do in unix?
Is grep faster than awk?
What is the first character of the output in ls l command?
Explain mount and unmount command.
What are the general commands in using unix os for a beginner?
Which command is used to create a directory?
What is grep short for?
Write a command to kill the last background job?
What happens when we execute a unix command?
How do you grep a case insensitive?
What are the unix commands?
What is the use of finger command?
What is unix command?