echo "ibase=10; obase=7; (cat -)" | bc