cfg/bin/cleanup_directories
2016-07-21 16:29:54 +02:00

4 lines
180 B
Bash
Executable file

#!/bin/bash
find /Users/luzifer/Downloads ! -name '.*' -mtime +12h -exec mv "{}" /Users/luzifer/.Trash/ \;
find /Users/luzifer/.Trash ! -name '.*' -mtime +2d -exec rm -rf "{}" \;