From: Chris Koeritz Date: Tue, 29 Jan 2013 04:37:20 +0000 (-0500) Subject: used on the output from the differ utility, this will find all the files that X-Git-Tag: 2.140.90~1122 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=3ab01833801e344d4930a9e6e27c0076c0aa43ec;p=feisty_meow.git used on the output from the differ utility, this will find all the files that are mentioned as having differences. --- diff --git a/scripts/text/snag_differ_files.sh b/scripts/text/snag_differ_files.sh new file mode 100644 index 00000000..efc8c577 --- /dev/null +++ b/scripts/text/snag_differ_files.sh @@ -0,0 +1,12 @@ + +file="$1"; shift + +if [ -z "$file" ]; then + echo "This script requires one filename that is a differ output file." + echo "All of the files with differences mentioned in the differ file will be" + echo "extracted and printed out." + exit 1 +fi + +grep "seen for [a-zA-Z0-9]*\.java" "$file" | sed -e "s/Differences seen for //" -e "s/:$//" +