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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. investmentbnker75

    Rm files by staggered dates

    Hopefully someone can give some insight to this, id really like to get it working.
  2. investmentbnker75

    Rm files by staggered dates

    Thanks Salem, But that command (find . -mtime +14 -ls | awk '$7 != "Sun" { system("rm " $NF) }') will remove everything older than 14 days. I still need to keep every sunday as well. The second command you gave shows all zeros
  3. investmentbnker75

    Rm files by staggered dates

    Hi Everyone, I need to remove files by specific dates. So for example, if i have files from a two month period of time, i want to keep files from the last 14 days and every Sunday beyond that only. Thanks

Part and Inventory Search

Back
Top