Format Number with Commas

Format a number with thousand separators for better readability.

Code

Utilities
printf "%'d\n" "$num"

Parameters

The number to format.

Server

More Bash Snippets