Linux Bash Dog Age Calculator Script
Page 1 of 1
Linux Bash Dog Age Calculator Script
- Code:
#!/bin/bash
echo "Dog Calc"
echo ""
echo "Enter Human Years For Dog"
read hyd # this reads user input
echo ""
echo "You Entered... "
echo "$hyd" # echos back the var
#
num2="7" # is the multiplyer
# now to times by multiplyer
num=$(($hyd * $num2))
#
echo "Dog Years... "
# Echo results!!!
echo $num
Similar topics
» Linux BASH Script Running Commands and Functions From Bash Script and saving to varables
» Bash Percentage Calculator For Linux
» Voltage Divider Calculator For Linux Bash
» Light Speed Calculator For Linux Bash
» Convert MP4 To MP3 Linux Bash Script
» Bash Percentage Calculator For Linux
» Voltage Divider Calculator For Linux Bash
» Light Speed Calculator For Linux Bash
» Convert MP4 To MP3 Linux Bash Script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum