You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
282 B
5 lines
282 B
#!/bin/sh
|
|
# create a patch file based on file extension
|
|
# $1 folder to run the find in
|
|
# $2 extension to use for the diff
|
|
find $1 -name "*$2" -exec bash -c 'filepath="$1" ; dir=$(dirname "$filepath") ; base=$(basename -s $2 "$filepath") ; diff -pur $filepath $dir/$base' -- {} $2 \;
|