sbc

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

sbc.1 (720B)


      1 .TH SBC 1 sbc\-VERSION
      2 .SH NAME
      3 sbc \- simple base converter
      4 .SH SYNOPSIS
      5 .B sbc
      6 .RB [ \-v ]
      7 .IR value
      8 .RB [
      9 .IR base
     10 .RB ]
     11 .SH DESCRIPTION
     12 sbc is a tool to convert between bases. The given value is converted and
     13 printed in decimal, hexadecimal, octal and binary.
     14 .P
     15 Even though the base may be specified as parameter, that's usually desumed by
     16 the format. See
     17 .B FORMATS
     18 below.
     19 .SH OPTIONS
     20 .TP
     21 .B \-v
     22 prints version information to stderr, then exits.
     23 .SH FORMATS
     24 .SS hex
     25 .TP
     26 .B 0x
     27 prefix for hexadecimal values
     28 .SS oct
     29 .TP
     30 .B 0
     31 prefix for octal values
     32 .SS bin
     33 .TP
     34 .B b
     35 suffix for binary values
     36 .SS dec
     37 .TP
     38 everything else is assumed to be a decimal integer.
     39 .P
     40 If specified, the base has precedence against the format.