[help] Bash Shell Script
<div class="IPBDescription"> - need help</div> here's the program...
echo " please enter number"
read num
echo " please enter number 2 "
read num2
hold=0
if [ $num -ge $num2 ]
then
$hold="$num"
else
$hold="$num2"
fi
------------------
now, i'm getting errors on the assignment lines, and for some reason, i can't see where i'm going wrong... any help is appreciated.
echo " please enter number"
read num
echo " please enter number 2 "
read num2
hold=0
if [ $num -ge $num2 ]
then
$hold="$num"
else
$hold="$num2"
fi
------------------
now, i'm getting errors on the assignment lines, and for some reason, i can't see where i'm going wrong... any help is appreciated.
Comments
My syntax is crying! :O
[edit]
<span style='font-size:8pt;line-height:100%'>Not a bash (get it? HAR HAR HAR) on you, but rather the horrible horrible language. :P</span>
[/edit]