Ralph Shumaker wrote:
> I got  echo -n  to work just fine.  But I cannot figure out how to get  
> echo -e Some text.\n  to work.  I tried to use -E, but no change.  echo 
> -e \r  doesn't work either.  What gives?

\ is meaningful to the shell. To pass \ to echo, you need to escape it,
or put it in quotes:

[EMAIL PROTECTED]:~]% echo -e some text \\nmoo
some text 
moo
[EMAIL PROTECTED]:~]% echo -e 'some text \nmoo' 
some text 
moo
[EMAIL PROTECTED]:~]% echo -e "some text \nmoo" 
some text 
moo

-john


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to