dotkb

    Default and alternative command

    (updated: )

    The following command will return the gnumfmt command if it is available, otherwise it will use the numfmt command.

    $(command -v gnumfmt || echo numfmt)