Generating Octal/Hex Codes from Bourne Shell

Tom Barrett tjb at Apple.COM
Wed Aug 17 01:49:29 AEST 1988


In article <118 at gillxp> rg at gillxp (Richard J. Gill) writes:
>		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? 

Could you be using csh on your Fortune?  Csh has a builtin echo command
which behaves differently than echo in Bourne shell echo.  Try using
/bin/echo instead of echo.
-
Tom Barrett  (408) 973-3364
Apple Computer MS 27AQ 10500 N. DeAnza Blvd. Cupertino CA 95014
{amdahl,decwrl,hplabs,sun,voder,nsc,mtxinu,dual,unisoft}!apple!tjb
	OR tjb at apple.apple.com
Tom Barrett  (408) 973-3364
Apple Computer MS 27AQ 10500 N. DeAnza Blvd. Cupertino CA 95014
{amdahl,decwrl,hplabs,sun,voder,nsc,mtxinu,dual,unisoft}!apple!tjb
	OR tjb at apple.apple.com



More information about the Comp.unix.wizards mailing list