Files
dotfiles/dot_local/bin/executable_clear-downloads

5 lines
134 B
Bash

#!/usr/bin/bash
# clear all files in ~/Downloads older than 24h
fd --changed-before 1d --search-path ~/Downloads --exec-batch rm -rf