home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14736 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.3 KB

  1. Xref: sparky comp.unix.questions:14736 comp.unix.shell:5088
  2. Path: sparky!uunet!ogicse!uwm.edu!rpi!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
  3. From: davidsen@ariel.crd.GE.COM (william E Davidsen)
  4. Newsgroups: comp.unix.questions,comp.unix.shell
  5. Subject: Re: Redirection of the Echo command to other tty's
  6. Keywords: unix echo shell
  7. Message-ID: <1992Dec16.164113.17110@crd.ge.com>
  8. Date: 16 Dec 92 16:41:13 GMT
  9. Article-I.D.: crd.1992Dec16.164113.17110
  10. References: <1992Dec14.222553.22768@sactoh0.sac.ca.us>
  11. Sender: usenet@crd.ge.com (Required for NNTP)
  12. Reply-To: davidsen@crd.ge.com (bill davidsen)
  13. Organization: GE Corporate R&D Center, Schenectady NY
  14. Lines: 14
  15. Nntp-Posting-Host: ariel.crd.ge.com
  16.  
  17. In article <1992Dec14.222553.22768@sactoh0.sac.ca.us>, dwj@sactoh0.sac.ca.us (Daniel W. James) writes:
  18.  
  19. | Do I need to use echo "Line One\n\rLine Two" during redirection???  Or is
  20. | there some easier way (independent of redirection) to make sure the both
  21. | the CR/LF sequence is output?
  22.  
  23.   If the redirected device has the stty option onlcr set, a newline will
  24. imply a return. If not you need to set the option or provide the return.
  25. I might suggest that providing the return won't hurt if the option is
  26. set.
  27.  
  28. -- 
  29. bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
  30.     Keyboard controller has been disabled, press F1 to continue.
  31.