This is an old revision of the document!
Input under each section examples of your program running using different options
Examples
base 2 (default)
./bitmask -M “10110111” -s “10011010 11010001”
10010010
10010001
base 8
./bitmask -M “66” -s “77 77” -b 8
66
66
delimiter example
./bitmask -M “66” -s “77s77” -b 8 -d “s”
66
66
base 10
./bitmask -M “31 -s “30” -b 10
30
base 16
./bitmask -M “FE” -s “FF” -b 16
0xFE
Help
./bitmask -h
Bitmask options:
-M 'BITMASK' specify bitmask value for processing (required)
-b 'BASE' input/output base (of 2, 8, 10, or 16; base 2 is default)
-w # set wordsize (power of 2 between 4 and 128, 8 is default)
Options displayed here for help:
-h display usage information and exit
-V display version information and exit
-s 'STRING' specify STRING as value to process
-4 set nibble as processing unit/word size
-7 set byte/word as 7-bits
-8 set byte/word as 8-bits (default)
-n no delimiter between processing units
-d 'CHAR' use CHAR as delimiter between processing units (space is default)
-q quiet, do not display anything to STDOUT
-v verbose, display more information to STDOUT