dotfiles/.bin/OLD/diff-from-orig.sh

15 lines
240 B
Bash
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/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