Path: utzoo!attcan!uunet!husc6!bloom-beacon!apple!tjb
From: tjb@Apple.COM (Tom Barrett)
Newsgroups: comp.unix.wizards
Subject: Re: Generating Octal/Hex Codes from Bourne Shell
Keywords: Bourne Shell Fortune
Message-ID: <15638@apple.Apple.COM>
Date: 16 Aug 88 15:49:29 GMT
References: <118@gillxp>
Reply-To: tjb@apple.com.UUCP (Tom Barrett)
Organization: Apple Computer Inc, Cupertino, CA
Lines: 23

In article <118@gillxp> rg@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@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@apple.apple.com