Generating Octal/Hex Codes from Bourne Shell

Richard J. Gill rg at gillxp
Tue Aug 16 07:33:44 AEST 1988


I have the need  be able  to generate the full ASCII character
set from the Bourne shell. There is no problem on my NCR Tower
XP (System V); I simply use the following syntax:

		echo "\007"	# 0x07
		echo "\0212"	# 0x8a
		 ...

On my Fortune 32:16 (Forpro 2.0 - Sys 3v7 & BSD 4.3), however,
the string is simply displayed as a literal.  Any ideas on how I
can generate the fully ASCII set from the Bourne shell on the
Fortune? 

Thanks.

-- 
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Dick Gill
Gill & Piette / PSG
(703)761-1110                                              ..uunet!gillxp!rg



More information about the Comp.unix.wizards mailing list