Bash: find out PI - March 25, 2011 @ 11:27 pm

A long time ago I wrote a script to find out the numbers behind the number PI but that was written in VBS. And today I wanted to recreate that script but than in Bash. I succeeded completely and here is the code:

Usage (Linux):

Step 1: Put the code inside a file and save it as a .sh file.
Step 2: In command line give the file a chmod of +x (eg. chmod +x
Step 3: Than run the file (eg. ./

And here you go.

Have fun!!