dotfiles/.local/bin/scripts/dedup

6 lines
267 B
Plaintext
Raw Normal View History

#!/bin/sh -e
2024-05-31 08:57:17 +00:00
rmlint --max-depth=5 --keep-hardlinked --rank-by=HOpdlam -o pretty -o sh:/tmp/dedup.sh "$@"
printf "Enter to confirm, any text to skip (answer does not matter if nothing was printed above this line) "
read -r answer
test -n "$answer" || /tmp/dedup.sh -d