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 is the use of the command 'ls -x chapter[1-5]' ?
What is command substitution?
Explain ‘system calls’ with respect to unix commands?
Briefly, how do you install Oracle software on UNIX.
What is the difference between AWK and SED commands? Plz give example and explain...
What is the procedure of "at" and crontab" commands?
Which command should you use to find the remaining disk space in unix server?
which command is used to identify the type of the file?
What does mkdir up2date; touch outdated up2date do?
How to display no of records in oracle using unix command?
What is the difference between cat and more command?
Where LOG fiels resides in AIX and pls tel me how to remove the log file