file=`cat cipher.txt | sed -e 's/[\r\n]/ /g'` for word in ${=file} do printf '%02x ' $((0b$word)) done