in reply to Search and delete

See perlintro/perlfaq its for you :)

perlfaq -> perlfaq5 - Files and Formats -> How do I change, delete, or insert a line in a file, or append to the beginning of a file?

Re: Script to clean up a log file based on timestamps