Bash shell script to check a given number is positive or negative
kw.sh
Output
kodingwindow@kw:~$ bash kw.sh ——————————————————————————————————————————— Script to check a given number is +ve or -ve ——————————————————————————————————————————— Enter the number -50 Entered number is negative ——————————————————————————————————————————— kodingwindow@kw:~$ sh kw.sh ——————————————————————————————————————————— Script to check a given number is +ve or -ve ——————————————————————————————————————————— Enter the number 0 Entered number is zero ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
Bash shell script to swap the given numbers and strings
Bash shell script to check the equality of a given numbers and strings
Bash shell script to convert Decimal to Hexadecimal and Octal
Advertisement