11a6faca1Sblymn#!/bin/sh 21a6faca1Sblymn# 31a6faca1Sblymn# Simple script that will generate a check file from input pasted 41a6faca1Sblymn# in, translate the octal \012 to \n and \015 to \r and then printf 51a6faca1Sblymn# the resulting string. This allows output from the verbose cursts 61a6faca1Sblymn# test to be translated into a check file simply. 71a6faca1Sblymn# 81a6faca1SblymnOUT="" 91a6faca1Sblymnwhile read -r line 101a6faca1Sblymndo 11*c22b5d7cSblymn next=`echo $line | sed -e 's/%/%%/g' -e 's/\n//' -e 's/\\015/\\r/g' -e 's/\\012/\\n/g'` 121a6faca1Sblymn OUT="${OUT}${next}" 131a6faca1Sblymndone 141a6faca1SblymnOUT=`echo "${OUT}" | sed 's/\n//'` 151a6faca1Sblymn 161a6faca1Sblymnprintf "${OUT}" 17