Rename directory non_regression_tests to comparison_tests
[SXSI/xpathcomp.git] / tests / comparison_tests / rotate.sh
diff --git a/tests/comparison_tests/rotate.sh b/tests/comparison_tests/rotate.sh
new file mode 100755 (executable)
index 0000000..8684f99
--- /dev/null
@@ -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