Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 449 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 449 Bytes

readbit

A command line tool to read bit from STDIN/File.

Quick Start

$ printf "\xff\xff" |./readbit -s 4

Options

Usage of readbit:
  -B uint
    	offset (in byte)
  -V	show version
  -b uint
    	offset (in bit)
  -s uint
    	read size(in bit)
  -v	verbose mode

Example(STDIN)

$ printf "\xff\xff" |./readbit -s 4
0x0f

Read 3bit and offset is 8bit.

$ printf "\xff\xff" |./readbit -s 3 -b 8
0x07