https://github.com/captaincluster/bashscriptcalculator
A short, and simple, Bash Script calculator that can perform simple calculations. Made by me as a part of the "Basics of Linux" course at LUT University.
https://github.com/captaincluster/bashscriptcalculator
bash-script college-assignment linux
Last synced: 8 months ago
JSON representation
A short, and simple, Bash Script calculator that can perform simple calculations. Made by me as a part of the "Basics of Linux" course at LUT University.
- Host: GitHub
- URL: https://github.com/captaincluster/bashscriptcalculator
- Owner: CaptainCluster
- Created: 2023-07-15T18:52:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T09:08:27.000Z (about 2 years ago)
- Last Synced: 2024-12-31T02:40:28.334Z (10 months ago)
- Topics: bash-script, college-assignment, linux
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BashScriptCalculator
A short, and simple, Bash Script calculator that can perform simple calculations. Made by me as part of the "Basics of Linux" course at LUT University.The program is capable of calculating additions, subtractions, multiplications, divisions, power calculations and remainder calculations.
Here are the symbols for the operators..."+" ===> addition
"-" ===> subtraction"x" ===> multiplication
"/" ===> division
"^" ===> power calculation
"%" ===> remainder calculation
NOTE! The calculations only work between two numbers. The program can't handle calculations between, for instance, three or more numbers.
You need to use precisely three arguments and they have to be separated with a space. Should they have no spaces between, the program will
think you gave one argument which you technically did.Here is an example of me doing a division calculation using the program.