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
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
> 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:
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
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 ;)
--
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
> 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
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
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
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
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
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
12 matches
Mail list logo