more ' fun!!!

Jun Lu luj at gus16.ecn.purdue.edu
Thu Mar 14 08:50:58 AEST 1991


In article <1991Mar13.211216.8061 at en.ecn.purdue.edu> nichols at en.ecn.purdue.edu (Scott P Nichols) writes:
>OK, in csh, I want to have this string echo'd...     ^[=@'^[H8
>Problem being, I can't get the ' to be echo'd.
>(I am putting this command into a shell script.)
>If I use the command...
>
>echo '=@'H8'
>
>...it thinks the string to be echo'd ends at the second '
>If I use the command...
>
>echo '=@\'H8'
>
>...it sees the \ as a character, thus moving the the wrong
>cursor position (this is a terminal plotting command).
>
>Any ideas?
>
Try

	echo "^[=@'^[H8"
--
-- Jun Lu                          Internet:luj at ecn.purdue.edu          --
-- Aeronautics & Astronautics      Bitnet:  luj%ecn.purdue.edu at purccvm  --
-- Purdue University               UUCP:    pur-ee!luj                  -- 
-- W. Lafayette, IN 47907          Phone:317-494-9410  Fax:317-494-0307 --



More information about the Comp.unix.shell mailing list