-cat > $TEMPDIR/results.txt <<EOF
-1.1 NPAR TESTS. Ranks
-#============================#==#=========#============#
-# # N|Mean Rank|Sum of Ranks#
-#============================#==#=========#============#
-#second - firstNegative Ranks# 5| 8.60| 43.00#
-# Positive Ranks# 8| 6.00| 48.00#
-# Ties # 2| | #
-# Total #15| | #
-#============================#==#=========#============#
-
-1.2 NPAR TESTS. Test Statistics
-#=====================#==============#
-# #second - first#
-#=====================#==============#
-#Z # -.18#
-#Asymp. Sig (2-tailed)# .86#
-#Exact Sig (2-tailed) # .89#
-#Exact Sig (1-tailed) # .45#
-#=====================#==============#
-
+cat > $TEMPDIR/results.csv <<EOF
+Table: Ranks
+,,N,Mean Rank,Sum of Ranks
+second - first,Negative Ranks,5,8.60,43.00
+,Positive Ranks,8,6.00,48.00
+,Ties,2,,
+,Total,15,,
+
+Table: Test Statistics
+,second - first
+Z,-.18
+Asymp. Sig. (2-tailed),.86
+Exact Sig. (2-tailed),.89
+Exact Sig. (1-tailed),.45