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 functionality of kernel in unix architecture?
what is the shell for dos,nt operating systems?
What is use of sed command?
12 Answers BitWise, Infosys, Reliance,
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
What is grep and how do you use it?
which script will invoke first ,when /etc/init.d starts
What will the following command do?
what is telnet?
Explain mount and unmount command.
What is the output of : $ ps-e $ ps-a commands
What is the nmap command?