Monday, November 14, 2011

Bash printf command

The printf command is very useful for formatting expressions in Bash.

printf -v VAR <format> <expression>

See more information at the URL http://wiki.bash-hackers.org/commands/builtin/printf.