home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!princeton!tan.Princeton.EDU!rtbunker
- From: rtbunker@tan.Princeton.EDU (Ross T. Bunker)
- Subject: Re: csh echo newlines
- Message-ID: <1992Aug22.193400.14637@Princeton.EDU>
- Originator: news@nimaster
- Sender: news@Princeton.EDU (USENET News System)
- Nntp-Posting-Host: tan.princeton.edu
- Organization: Princeton University
- References: <1992Aug19.031613.7662@usenet.ins.cwru.edu> <1992Aug19.041937.14932@novell.com> <17514@autodesk.COM>
- Distribution: na
- Date: Sat, 22 Aug 1992 19:34:00 GMT
- Lines: 28
-
- In article <17514@autodesk.COM> dansmith@Autodesk.COM (Daniel Smith) writes:
- >In <1992Aug19.041937.14932@novell.com> tporczyk@novell.com (Tony Porczyk) writes:
- >
- >> wb8foz@skybridge.SCL.CWRU.Edu (David Lesher) writes:
- >
- >> >How do I get a csh echo statement to output a newline?
- >> >All the book examples talk about supressing them. I want one!
- >
- >> echo ""
- >
- > And if you want a lot of them, try:
- >
- > echo 'line 1=line 2=line 3' | tr '=' '\015'
- >
- > Daniel
-
- i do it this way in sh
- ( echo "blah"; echo "blah"; echo "blah" ) | whatever cmd.
-
- very useful for piping commands to ed
-
- cheers
-
- --
- ------------------------------------------------------------------------------
- :)ross | I don't have to take this abuse from you --
- Internet - rtbunker@princeton.edu | I've got hundreds of people waiting to abuse
- Bitnet - rtbunker@pucc.bitnet | me. --Bill Murray, "Ghostbusters"
-