From 3ab01833801e344d4930a9e6e27c0076c0aa43ec Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 28 Jan 2013 23:37:20 -0500 Subject: [PATCH] used on the output from the differ utility, this will find all the files that are mentioned as having differences. --- scripts/text/snag_differ_files.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/text/snag_differ_files.sh 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/:$//" + -- 2.34.1