architecture/docs/workshop/5-snake-oil-crypto/hands-on-support/ClosePQ/answers/convert10.sh

8 lines
97 B
Bash
Raw Normal View History

2019-12-06 10:53:00 +01:00
#!/bin/bash
while read line
do
ruby<<EOF
p "$line".to_i(16).to_i()
EOF
done < "${1:-/dev/stdin}"