Commit 7857f875 authored by multrus's avatar multrus
Browse files

add sorting

parent 521f3be3
Loading
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

if [ $# -lt 2 ]; then
    echo "Usage: $0 proc_output_dir testname.md5"
    echo "Requires: md5sum"
    echo "Requires: md5sum (Linux) or md5 (macOS)"
    exit 1
fi

@@ -45,7 +45,10 @@ else
    md5=md5sum
fi

echo "" > $2
tmpfile=`mktemp`
echo "" > $tmpfile
for f in $(find $1 -name "*c??.wav"); do
    echo ${f##*/} $($md5 $f | awk '{ print toupper($1) }') >>$2
    echo ${f##*/} $($md5 $f | awk '{ print toupper($1) }') >> $tmpfile
done
cat $tmpfile | sort > $2
rm -f $tmpfile