##Shell 68 ###tools: bc -l, tr, cut echo "scale=2468;obase=16;4*a(1)"|bc -l|tr -d '\\\n'|cut -c1027-2051 ###Shell 64, tools: bc -l, tr, tail, differs in the rounding of the last place echo "scale=2466;obase=16;4*a(1)"|bc -l|tr -d '\\\n'|tail -c1024 Might be considered cheating, since the knowledge how to compute PI is in 4*a(1), and that 1 have to use scale=2466 was iteratively investigated. Thanks to breadbox for the idea to use cut.