On 3/19/07, Ralph Shumaker <[EMAIL PROTECTED]> 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?

The man page for  echo  doesn't have much.  info coreutils echo  has
even less.
http://unixhelp.ed.ac.uk/CGI/man-cgi?bash+1 doesn't have much either.


The consensus of newsgroup comp.unix.shell is "don't use echo, use printf".

printf is a bash built-in, and so you read about it in $ man bash

Echo has had compatibilty problems almost since the beginning of Unix,
since there are several partially compatible versions.

Printf uses a format declaration, which you have control over.

   carl
--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]


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

Reply via email to