home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3568 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.5 KB  |  43 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!princeton!tan.Princeton.EDU!rtbunker
  3. From: rtbunker@tan.Princeton.EDU (Ross T. Bunker)
  4. Subject: Re: csh echo newlines
  5. Message-ID: <1992Aug22.193400.14637@Princeton.EDU>
  6. Originator: news@nimaster
  7. Sender: news@Princeton.EDU (USENET News System)
  8. Nntp-Posting-Host: tan.princeton.edu
  9. Organization: Princeton University
  10. References: <1992Aug19.031613.7662@usenet.ins.cwru.edu> <1992Aug19.041937.14932@novell.com> <17514@autodesk.COM>
  11. Distribution: na
  12. Date: Sat, 22 Aug 1992 19:34:00 GMT
  13. Lines: 28
  14.  
  15. In article <17514@autodesk.COM> dansmith@Autodesk.COM (Daniel Smith) writes:
  16. >In <1992Aug19.041937.14932@novell.com> tporczyk@novell.com (Tony Porczyk) writes:
  17. >
  18. >> wb8foz@skybridge.SCL.CWRU.Edu (David Lesher) writes:
  19. >
  20. >> >How do I get a csh echo statement to output a newline?
  21. >> >All the book examples talk about supressing them. I want one!
  22. >
  23. >> echo ""
  24. >
  25. >    And if you want a lot of them, try:
  26. >
  27. >    echo 'line 1=line 2=line 3' | tr '=' '\015'
  28. >
  29. >                Daniel
  30.  
  31. i do it this way in sh
  32.  ( echo "blah"; echo "blah"; echo "blah" ) | whatever cmd.
  33.  
  34. very useful for piping commands to ed
  35.  
  36. cheers
  37.  
  38. -- 
  39. ------------------------------------------------------------------------------
  40. :)ross                            | I don't have to take this abuse from you -- 
  41. Internet - rtbunker@princeton.edu | I've got hundreds of people waiting to abuse
  42. Bitnet   - rtbunker@pucc.bitnet   | me.  --Bill Murray, "Ghostbusters"
  43.