dotfiles/.local/bin/scripts/dedup-dox

7 lines
169 B
Bash
Executable File

#!/bin/zsh
# Deduplicate Documents
dox=$(realpath $DATA/3-*)
echo "Hardlinking:"
dedup --max-depth=9 -c sh:handler=hardlink "$dox" "$@"
dedup --max-depth=9 "$dox" "$@"