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 a bash command?
Will rm -r* removes hidden files?
What command is used to check the current users?
What is the functionality of a top command?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Explain ‘system calls’ with respect to unix commands?
What is pid?
Which Command is Used for temprary switch User?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
What is the nmap command?
How to use grep command to list find the records of a file containing 10 different strings?
What is the unix command to confirm a remote host is alive or not?