Tagged Questions
1
vote
1answer
930 views
How to make sendmail write to new maillog
I want to rotate my maillog, but I want to make sure the newly rotated log contains the last 2M lines from the previous log:
# write the last 2M lines to a new log
tail -n 2000000 ...