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 to change a normal file into hidden file
What do know about tee command?
What is the difference between cat and more command?
Give command that will make the file "run.sh" executable?
What is the use of pipes?
How do you list the files in an UNIX directory while also showing hidden files?
Can you enlist some commonly used network commands?
How do you change file permissions and ownership in Unix?
Which command is used to find whether the system is 32 bit or 64 bit?
What is grep r?
How to copy multiple files and directories into some other directory?
write grep commands to select the lines that have exactly two characters