Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to get the last ten lines of a file using awk utility?



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

Post New Answer

More Unix Commands Interview Questions

what is the functionality of kernel in unix architecture?

13 Answers   HCL,


what is the shell for dos,nt operating systems?

1 Answers  


What is use of sed command?

12 Answers   BitWise, Infosys, Reliance,


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

0 Answers  


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?

7 Answers  


What is grep and how do you use it?

0 Answers  


which script will invoke first ,when /etc/init.d starts

1 Answers  


What will the following command do?

0 Answers  


what is telnet?

6 Answers  


Explain mount and unmount command.

0 Answers  


What is the output of : $ ps-e $ ps-a commands

5 Answers   IBM,


What is the nmap command?

0 Answers  


Categories