Since version 2, bash support a single aritmethic operations. Altough bash is not a mathematical shell (use bc instead), you can perform certain conversions using the bash arithmetic logic.
For example you can remove the left zeroes in a decimal number without require any external utility or print formats, let’s suppose that you want to strip zeroes from the number 007, which is stored in bond variable.
Today I was released a new version of dtools. Distributed tools, aka dtools is a project written in bash coding to create a suite of programs to allow running different UNIX comamnds parallelly in a list of tagged hosts.
Fully written in bash, no third party software required (except ssh, obviously).
Based in module architecture, easy to extend.
Full integration with ssh.
Easy to group hosts by tags or search by regular expression.
Manage of ssh hosts
Parseable output, but human-readable
Thinking in system admin, no special development skills required to extend the software.
$ dt tag:linux ssh date
okay::dt:ssh:myhostlinux1.domain:Mon Nov 16 23:54:04 CET 2009
okay::dt:ssh:myhostlinux3.domain:Mon Nov 16 23:54:04 CET 2009
okay::dt:ssh:myhostlinux2.domain:Mon Nov 16 23:54:04 CET 2009
As usual, you can download the code from the project page, or if you wish you can download the code via git: