How-To Geek on MSN
Why printf is superior to echo in Linux scripts
The printf command offers well-defined behavior following the POSIX standard, which means it works the same way across shells ...
When you have a width specification of 1 (like you do in the second line) the output will be H or T. If you have anything else, the output will be HEADS or TAILS. But first, we need to add the %H ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results
Feedback