in a growing log file how will you see the 1st 99 lines?

Answer Posted / dinesh babu

sed -n '1,99p' filename

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the system know where one command ends and another begins?

1582


What is the difference between awk and grep?

561


What is the significance of the 'tee' command?

600


How do I find previous commands in unix?

599


What is the search command in unix?

609






What does find command return in unix?

598


What is grep in bash?

591


How to find $ai_serual resolved path by using unix

1031


What does the command '$ls | wc –l > file1' do?

684


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

650


Why is shebang used?

600


Explain mount and unmount command.

623


What is time_t?

590


How does shebang work?

594


What does this command do? Cat food 1 > kitty

984