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 |
Can you explain a little bit about command substitution?
How does one process we can start an executable file? How to get the PID process, which we started?
What are the dos commands?
How do I run a bash script?
Which unix command lists files/folders in alphabetical order?
how to find the 51th record of a file containing 100 records in unix.
How do I use grep to search for a file?
How many bits use for MAC address?
What is pid?
Give Command that will move a single file called "unix.txt"
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Explain how to use grep command to list find the records of a file containing 10 different strings?