Skip to main content
using cut instead of dd
Source Link
user unknown
  • 4.6k
  • 31
  • 31

##Shell 8068 ###tools: bc -l, tr, ddcut

echo "scale=2468;obase=16;4*a(1)"|bc -l|tr -d '\\\n'|dd bs=1 skip=1026'\\\n'|cut count=1K-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 tail -c1024 instead of dd bs=1 skip=1024 (skip=1K would have been a less useful option to improve it)cut.

##Shell 80 ###tools: bc -l, tr, dd

echo "scale=2468;obase=16;4*a(1)"|bc -l|tr -d '\\\n'|dd bs=1 skip=1026 count=1K

###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 tail -c1024 instead of dd bs=1 skip=1024 (skip=1K would have been a less useful option to improve it).

##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.

giving up on the group pressure, to fulfill the holy words
Source Link
user unknown
  • 4.6k
  • 31
  • 31

##Shell 6480 ###tools: bc -l, tr, dd

echo "scale=2468;obase=16;4*a(1)"|bc -l|tr -d '\\\n'|dd bs=1 skip=1026 count=1K

###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 tail -c1024 instead of dd bs=1 skip=1024 (skip=1K would have been a less useful option to improve it).

##Shell 64 ###tools: bc -l, tr, tail

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 tail -c1024 instead of dd bs=1 skip=1024 (skip=1K would have been a less useful option to improve it).

##Shell 80 ###tools: bc -l, tr, dd

echo "scale=2468;obase=16;4*a(1)"|bc -l|tr -d '\\\n'|dd bs=1 skip=1026 count=1K

###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 tail -c1024 instead of dd bs=1 skip=1024 (skip=1K would have been a less useful option to improve it).

added 141 characters in body
Source Link
user unknown
  • 4.6k
  • 31
  • 31

##Shell 7064 ###tools: bc -l, tr, ddtail

echo "scale=2466;obase=16;4*a(1)"|bc -l|tr -d '\\\n'|dd bs=1'\\\n'|tail skip=1024-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 tail -c1024 instead of dd bs=1 skip=1024 (skip=1K would have been a less useful option to improve it).

##Shell 70 ###tools: bc -l, tr, dd

echo "scale=2466;obase=16;4*a(1)"|bc -l|tr -d '\\\n'|dd bs=1 skip=1024

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.

##Shell 64 ###tools: bc -l, tr, tail

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 tail -c1024 instead of dd bs=1 skip=1024 (skip=1K would have been a less useful option to improve it).

Source Link
user unknown
  • 4.6k
  • 31
  • 31
Loading