Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete line(s) from file after certain # of days ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
can someone post an example of code that will delete lines after a certain number of days ? lets say 5

thank you. i'm still new to perl programming
 
Only if each line in your file has some kind of timestamp... Or all lines need to be deleted (in which case you could use the modify time of the file itself).

More info required I think.

Loon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top