dotfiles/.bin/OLD/diff-from-orig.sh
2024-02-14 07:55:58 +01:00

15 lines
240 B
Bash
Executable File

#!/bin/sh
find . -name "*.orig" | while read ORIG
do
FILE="${ORIG%*.orig}"
SIZE=$(stat $ORIG | awk '{print $8}')
if [ $SIZE -eq 0 ]
then
echo "full file: $FILE"
continue
fi
diff -u $ORIG $FILE
done