1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-25 16:23:06 +00:00
dotfiles/bin/comparedir

9 lines
179 B
Plaintext
Raw Normal View History

#!/bin/sh
IFS=$(printf '\n\t')
for i in $(fd -t f); do
if [ "$(du "$i" | cut -f1)" -lt "$(du "$1/$i" | cut -f1)" ]; then
echo "$i"
mv "$i" "$1/$i"
fi
done