1 1.1 blymn #!/bin/sh 2 1.1 blymn # 3 1.1 blymn # Simple script that will generate a check file from input pasted 4 1.1 blymn # in, translate the octal \012 to \n and \015 to \r and then printf 5 1.1 blymn # the resulting string. This allows output from the verbose cursts 6 1.1 blymn # test to be translated into a check file simply. 7 1.1 blymn # 8 1.1 blymn OUT="" 9 1.1 blymn while read -r line 10 1.1 blymn do 11 1.2 blymn next=`echo $line | sed -e 's/%/%%/g' -e 's/\n//' -e 's/\\015/\\r/g' -e 's/\\012/\\n/g'` 12 1.1 blymn OUT="${OUT}${next}" 13 1.1 blymn done 14 1.1 blymn OUT=`echo "${OUT}" | sed 's/\n//'` 15 1.1 blymn 16 1.1 blymn printf "${OUT}" 17