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 we will execute previous command in vi editor?
What is the command to compare two files in unix?
What is the basic difference between unix and windows operating systems?
43 Answers Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,
what is the difference between relative path and absolute path?
how will u execute a file in unix
What does 'mkdir' command do in UNIX?
How do I search a whole word in vim?
How does the user view the contents of a text file in UNIX?
Give the command for finding the current date.
Explain the steps that a shell follows while processing a command.
How do you know about running processes of a particular user?
solaris Run level?