:::: MENU ::::

Monthly Archives / July 2015

  • Jul 20 / 2015
  • 0
Linux

Move files with a specific extension older than x days

Need to move or remove a list of files with a particular extension, a particular filename pattern and/or not changed since a specific date?
This can be done by combining an action to perform with the result of a find command.

  • Moving files called “FILES*.csv” with a modification date older than 10 days:

  • Remove all files older than 30 days with a name starting by “temp” in the “/tmp” folder without any recursion:

Question ? Contact