cfg/bin/cleanup_directories

5 lines
180 B
Text
Raw Permalink Normal View History

2016-07-21 13:48:49 +00:00
#!/bin/bash
find /Users/luzifer/Downloads ! -name '.*' -mtime +12h -exec mv "{}" /Users/luzifer/.Trash/ \;
find /Users/luzifer/.Trash ! -name '.*' -mtime +2d -exec rm -rf "{}" \;