home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4640 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.2 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!pki-nbg!hitkw14!smr
  2. From: smr@pki-nbg.philips.de (Stephen Riehm)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: echo question
  5. Message-ID: <smr.721478541@hitkw14>
  6. Date: 11 Nov 92 10:42:21 GMT
  7. References: <1992Nov9.171618.5675@midway.uchicago.edu>
  8. Sender: news@pki-nbg.philips.de
  9. Reply-To: smr@pki-nbg.philips.de
  10. Lines: 25
  11.  
  12. a-douglas@uchicago.edu (Allen Douglas) writes:
  13.  
  14. >I would like to echo tab and line return characters to the screen and/or 
  15. >understandto a file. But I must not the escaping/quoting mechanism.  According
  16. >to my UNIX reference I should be able to type:
  17.  
  18. >quads% echo Bob'\t\t'cat
  19. >and get:
  20. >Bob        cat
  21.  
  22. try:
  23. % echo 'Bob[tab][tab]cat'
  24. (ie: actually hit the tab key)
  25.  
  26. it works cus the shell doesn't interpret it for you, and you aren't
  27. relying on having an echo that recognises \t (some do, some don't)
  28.  
  29. catchya
  30.  
  31. -----------------------------------------------------------------
  32. Stephen Riehm        Configuration Management       _-_|\ 
  33. smr@pki-nbg.philips.de    Philips Kommunikations Industrie  /     \
  34. Work: +49 911 526 2975    N|rnberg, Germany          \_.-.!/
  35. Fax:  +49 911 526 3678    "I was there, now I am here!"           v 
  36. "My company speaks another language, I CAN'T speak on its' behalf"
  37.