Okay, so I been trying to figure this problem for a while and I'm coming up with errors left and right. This is my first time trying to learn the basics. So any advice would be helpful!
Problem: I'm trying to write a Bash shell script program that prompts for and reads two integers from the user. The second argument is assumed to be greater than the first. The output of the program is a counting of numbers beginning at the first number and ending with the second number.
In other words the output would look like this:
Please enter the first number: 3 Please enter the second number, larger than the first: 6 3 4 5 6
Okay, so this is what I have so far~
read -p "Please Enter the first number : " n1 echo "$n1" read -p "Please Enter the second number, larger than the first : " n2 echo "$n2" FIRSTV=0 SECONDV=1 if [ 1 -gt 0] then count=$((FIRSTV-SECONDV)) echo $COUNT fi