#!/bin/sh
i=1
a="sed"
if [ "`uname -s`" = OS/2 ]; then
	echo="`which echo.exe`"
else
	echo="`which echo`"
fi
while [ $i -lt 256 ]; do
	if [ $i -lt 32 -o $i -ge 127 ]; then
		oct="`printf %03o $i`"
		# dash's internal echo doesn't know -e
		char="`"$echo" -e \\\\$oct`"
		a="$a -e 's/$char/\\\\\\\\$oct/g'"
	fi
	i=`expr $i + 1`
done
# bash and dash differ here: bash creates double backslashes, dash single
echo "$a"|sed 's/\\\\\\\\/\\\\/g'
