what is the command to print last 8 lines of any text file.

Answer Posted / meghna

sed -n '$-8 , $p' filename

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does awk stand for?

615


Who wrote grep?

587


Which unix command to make a new directory?

592


What does #!/ Bin sh do?

594


Which command should you use to find the remaining disk space in unix server?

709






What is the significance of the 'tee' command?

598


Is it inbetween or in between?

587


what is the advaantage of each user having its own copy of the shell?

2038


How can we use grep command in unix?

618


Enlist some filename manipulation commands in unix.

556


What does sed command do in unix?

566


How do I use grep to find a file?

583


What does find command return in unix?

596


Which command is used to delete all files in the current directory and all its sub-directories?

668


Which command is used to copy files?

556