blob: 1ec2d0109e96575d1a263a1f4a710e41e989642f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
[ -z "$1" -o -z "$2" ] && {
# usage
echo "usage: $0 <directory> <diff-extension>" 1>&2
exit 1
}
find $1 \( -name "*$2" -o -name ".*$2" \) -print |
while read f; do
diff -u $f `echo $f | sed s/$2\$//`
done
|