Index of /downloads/base-convert

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] Makefile 01-Nov-2005 22:46 313 [   ] README 06-Sep-2006 01:13 1.0K [   ] b2d 06-Sep-2006 01:13 1.2K [   ] base-convert-1.0.tar.gz 02-Nov-2005 03:25 1.2K

    base-convert - Copyright (C) 2002 Murray Nesbitt (websrc AT nesbitt.ca)

    This program is protected and licensed under the following terms and
    conditions: 1) it may not be redistributed in binary form without the
    explicit permission of the author; 2) when redistributed in source
    form, in whole or in part, this complete copyright statement must
    remain intact.

    base-convert is a shell script that converts its numeric argument from
    one base to another, depending on the name by which the script was
    invoked.  For example:

        Convert binary 101010 to decimal:

            $ ./b2d 101011
            43

        Convert octal 755 to hexadecimal:
    
            $ ./o2h 755
            1ED
        
        The scripts can be pipelined:

            $ echo 101010 | ./b2o | ./o2h | ./h2d
            42

    The enclosed Makefile creates the 12 permutations of binary, octal, 
    decimal and hexadecimal (b2d, d2o, h2b, etc.) as hard links.