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 |
How do you stop a running process?
How do you know about running processes of a particular user?
What is the use of the command 'ls -x chapter[1-5]' ?
fork in unix ?
What are some command words?
Can a process kill itself in UNIX/or in its various versions?
What is the use of finger command?
what do you understand by 'unix is a portable os'?
What is shrinking file system in AIX where it actually resides?
distinguish between paging and swapping?
What does find command return in unix?
In vi editor how do you execute unix commands?