home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:14866 comp.unix.shell:5127
- Path: sparky!uunet!nntp1.radiomail.net!fernwood!autodesk!dansmith
- From: dansmith@Autodesk.COM (Daniel Smith)
- Newsgroups: comp.unix.questions,comp.unix.shell
- Subject: Re: Redirection of the Echo command to other tty's
- Keywords: unix echo shell
- Message-ID: <18198@autodesk.COM>
- Date: 21 Dec 92 19:21:24 GMT
- References: <1992Dec14.222553.22768@sactoh0.sac.ca.us>
- Followup-To: comp.unix.questions
- Organization: Autodesk Inc., Sausalito CA, USA
- Lines: 25
-
- In <1992Dec14.222553.22768@sactoh0.sac.ca.us> dwj@sactoh0.sac.ca.us (Daniel W. James) writes:
- > However, if I type:
- > $ echotest.sh > /dev/console
- > I get the following output on the console:
- > Line One
- > Line Two
- > I.E., during redirection, the \n changes from cr/lf to just lf
-
-
- Try outputting both of the chars.
-
- echo 'line one+=line two' | tr '+=' '\015\012' > /dev/console
-
- This works even when my console has vi running...
-
- Should be very portable!
-
- Daniel
-
-
- --
- Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
- Disclaimer: written by a highly caffeinated mammal
- dansmith@autodesk.com dansmith@well.sf.ca.us
-
-