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

How do I find previous commands in unix?

596


What is “chmod” command?

568


What is used to type command?

546


What does the command ' $who | sort –logfile > newfile' do?

774


What does awk stand for?

615






Which command is used to create a directory?

577


What do chgrp command do?

594


What does the metacharacter mean?

612


What is the pipe command?

583


What is the comma to show the space allocation of files?

562


What are reported commands?

570


What do know about tee command and its usage?

591


How do I use grep to find a file?

583


What are bash commands?

601


Explain command to view process running?

619