On Wed, Jun 23, 2010 at 8:23 PM, Peng Yu <pengyu...@gmail.com> wrote: > Why printf is better than echo? Is this because printf is more robust than > echo?
Because if a string that is to be printed happens to be an echo flag, such as -n or -e, there's no straight forward way of escaping it such as with printf %s. Andres P