print IO.exec("echo 'obase=10;ibase=2;' >> i.txt"); print IO.exec("cat i.txt input | bc ");