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 the difference between awk and grep?
How do you copy a directory with many files and folders into another directory?
how to make IGNITE-BACKUP in HP-UX?
What is ctrl d?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
why metadb requires a seperate slice to create Solaris volume manager
What command would users use to see what file one page at a time in UNIX?
What does find command return in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
How to display no of records in oracle using unix command?
can we use cat command as an editor ..???
in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?