1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-08 08:26:14 +00:00
debugging/02_day/valgrind/valgrind-3.11.0/auxprogs/posixtestsuite-1.5.1-diff-results
2015-12-13 22:34:58 +09:00

22 lines
272 B
Bash
Executable File

#!/bin/sh
usage()
{
cat <<EOF
Usage: $0 result_file_1 result_file_2
EOF
}
if [ $# != 2 ]; then
usage;
exit 1;
else
echo $1 $2;
rm -f tmptmp_1 tmptmp_2;
grep -v GRIND= $1 > tmptmp_1;
grep -v GRIND= $2 > tmptmp_2;
diff -U2 tmptmp_1 tmptmp_2;
fi