Re: end of line at bash

2003-09-03 Thread steffen . grunewald
On Wed, Sep 03, 2003 at 06:17:53PM -0500, Ezra Nugroho wrote: > So -e does it for echo. I would never think of that. > > > What I really want to do is the following: > > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > > cat msg |ma

Re: end of line at bash

2003-09-03 Thread Cameron Simpson
On 20:22 03 Sep 2003, Lorenzo Prince <[EMAIL PROTECTED]> wrote: | Try something like | printf "first line\nsecond line\n" | | According to the manual for the echo command, | echo -e first line\nsecond line | | should do the same thing, but it doesn't work on my system for some strange reason. T

Re: end of line at bash

2003-09-03 Thread Ian Mortimer
> Oh. That's where my problem was. The manpage didn't say I needed to put quotes > around the text. The above command > does work on my system. You don't need to put quotes around the text but you do need to escape the \ to stop the shell removing it before echo sees it. This also works:

Re: end of line at bash

2003-09-03 Thread Gerry Doris
On Wed, 3 Sep 2003, Lorenzo Prince wrote: > Try something like > > printf "first line\nsecond line\n" > > According to the manual for the echo command, > > echo -e first line\nsecond line > > should do the same thing, but it doesn't work on my system for some strange reason. > The output of

Re: end of line at bash

2003-09-03 Thread Lorenzo Prince
Hal Burgiss staggered into view and mumbled: > $ echo -e "first line\nsecond line" > first line > second line Oh. That's where my problem was. The manpage didn't say I needed to put quotes around the text. The above command does work on my system. Lorenzo Prince happy Shrike user ;) --

Re: end of line at bash

2003-09-03 Thread Lorenzo Prince
Try something like printf "first line\nsecond line\n" According to the manual for the echo command, echo -e first line\nsecond line should do the same thing, but it doesn't work on my system for some strange reason. The output of that command shows first linensecond line HTH. Lorenzo Princ

Re: end of line at bash

2003-09-03 Thread Ian Mortimer
> What I really want to do is the following: > > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" Put it all in quotes: msg="$(msg)\nnew message" > cat msg |mail -s REPORT [EMAIL PROTECTED] cat is for files not variables and

Re: end of line at bash

2003-09-03 Thread Hal Burgiss
On Wed, Sep 03, 2003 at 06:17:53PM -0500, Ezra Nugroho wrote: > So -e does it for echo. I would never think of that. > > > What I really want to do is the following: > > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > > cat msg |ma

Re: end of line at bash

2003-09-03 Thread Benjamin J. Weiss
On Wed, 3 Sep 2003, Ezra Nugroho wrote: > So -e does it for echo. I would never think of that. > > > What I really want to do is the following: > > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > msg=$(msg)\n"new message" > > cat msg |mail -s REPORT [EMAIL P

Re: end of line at bash

2003-09-03 Thread Ezra Nugroho
So -e does it for echo. I would never think of that. What I really want to do is the following: msg=$(msg)\n"new message" msg=$(msg)\n"new message" msg=$(msg)\n"new message" msg=$(msg)\n"new message" cat msg |mail -s REPORT [EMAIL PROTECTED] This time \n doesn't work, everything is sent in the

Re: end of line at bash

2003-09-03 Thread Hal Burgiss
On Wed, Sep 03, 2003 at 05:58:46PM -0500, Ezra Nugroho wrote: > it's hard to find. > > I want to be able to do: > > echo "first line"\newline"second line" > > in a bash script instead of > > echo "first line" > echo "second line" > $ echo -e "first line\nsecond line" first line second line

end of line at bash

2003-09-03 Thread Ezra Nugroho
Hi there, I tried to find the end-of-line symbol at bash at the man page, the mini HOW-TO, programming guide, etc. anc I can't find it. It must be a simple think everyone things it's not worth mentioning, but boy it's hard to find. I want to be able to do: echo "first line"\newline"second line