LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Delete files older then 30 days (https://www.linuxquestions.org/questions/%2Absd-17/delete-files-older-then-30-days-611845/)

stefaandk 01-07-2008 04:35 PM

Delete files older then 30 days
 
I'm after the syntax that would let me delete files older then x days.

This Linux command:

find -mtime +30 -exec rm '{}' \;

Does not work in BSD though.

anomie 01-07-2008 08:31 PM

Try specifying a path. See manpages for find(1).


All times are GMT -5. The time now is 11:43 AM.