sbc

simple base converter
git clone git://git.bitsmanent.org/sbc
Log | Files | Refs | README | LICENSE

commit 41acb5933597e76245c31d8cef583ec7051069b0
parent 72846c9ddd0046d4d485b2f0a801534fc3ed6519
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sat, 18 Jun 2022 12:39:54 +0200

Extends the man page.

Diffstat:
Msbc.1 | 27+++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)

diff --git a/sbc.1 b/sbc.1 @@ -11,3 +11,30 @@ sbc \- simple base converter .SH DESCRIPTION sbc is a tool to convert between bases. The given value is converted and printed in decimal, hexadecimal, octal and binary. +.P +Even though the base may be specified as parameter, that's usually desumed by +the format. See +.B FORMATS +below. +.SH OPTIONS +.TP +.B \-v +prints version information to stderr, then exits. +.SH FORMATS +.SS hex +.TP +.B 0x +prefix for hexadecimal values +.SS oct +.TP +.B 0 +prefix for octal values +.SS bin +.TP +.B b +suffix for binary values +.SS dec +.TP +everything else is assumed to be decimal. +.P +If specified, the base has precedence against the format.