Posted By

deepsoul on 09/30/09


ascii perl binary pack bc

Versions (?)

Convert bit stream to ASCII text

 / Published in: Bash

Useful for decoding geek humour such as this cartoon. Accepts input from stdin.

  1. { export BC_LINE_LENGTH=500; echo $'obase=16\nibase=2\n'; cat; } | bc | perl -n -e 'print pack("H*", $_), "\n";'

Report this snippet  

You need to login to post a comment.