I need to retrieve last 100 lines of logs from the log file.
I tried the sed command

sed -n -e '100,$p' logfilename

Please let me know how can I change this command to specifically retrieve the last 100 lines.

6 Answers
6

Leave a Reply

Your email address will not be published. Required fields are marked *