After a tutorial about Python on NetTuts I decided to create my first python script: a simple calculator.
And here is the result:
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:
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 fileName.sh)
Step 3: Than run the file (eg. ./fileName.sh)
And here you go.