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 that command shows
> 
> first linensecond line
> 
> HTH.
> 
> Lorenzo Prince
> happy Shrike user ;)

I believe it doesn't work because of the version of bash that you're
using.  If you do a man bash you'll see the way for your version of bash
to intrepret a string is

echo $'first line\nsecond line'

those are ' not `

-- 
Gerry

"The lyfe so short, the craft so long to learne"  Chaucer


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to