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 ...
Even if you're already familiar with the printf command, if you got your information via "man printf" you may be missing a couple of useful features that are provided by bash's built-in version of the ...
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 ...
In my last article, "Fancy Tricks for Changing Numberic Base", I explored the surprising ability of the Linux shell to convert numeric bases on the fly, including this sweet little snippet that ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results