X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=tests%2Fcomparison_tests%2Frotate.sh;fp=tests%2Fcomparison_tests%2Frotate.sh;h=8684f99b38395c8a244b4ba652ac3b30badf4cc9;hb=adbae5267917033dec93e753bbc81272d16ab218;hp=0000000000000000000000000000000000000000;hpb=8f5b2f0c7e95245c1b7f4cc18aa137ba8e784166;p=SXSI%2Fxpathcomp.git diff --git a/tests/comparison_tests/rotate.sh b/tests/comparison_tests/rotate.sh new file mode 100755 index 0000000..8684f99 --- /dev/null +++ b/tests/comparison_tests/rotate.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +cat "$1" | sed -e 's/,/ /g' | ( +COUNT="" +MAT="" +SER="" +while read q num count mat ser +do +COUNT="$COUNT","$count" +MAT="$MAT","$mat" +SER="$SER","$ser" +done +echo "$COUNT" +echo "$MAT" +echo "$SER" +) \ No newline at end of file