chk_gen revision 1.1
11.1Sblymn#!/bin/sh
21.1Sblymn#
31.1Sblymn# Simple script that will generate a check file from input pasted
41.1Sblymn# in, translate the octal \012 to \n and \015 to \r and then printf
51.1Sblymn# the resulting string.  This allows output from the verbose cursts
61.1Sblymn# test to be translated into a check file simply.
71.1Sblymn#
81.1SblymnOUT=""
91.1Sblymnwhile read -r line
101.1Sblymndo
111.1Sblymn	next=`echo $line | sed -e 's/\n//' -e 's/\\015/\\r/g' -e 's/\\012/\\n/g'`
121.1Sblymn	OUT="${OUT}${next}"
131.1Sblymndone
141.1SblymnOUT=`echo "${OUT}" | sed 's/\n//'`
151.1Sblymn
161.1Sblymnprintf "${OUT}"
17