- Jan 21, 2005
- 17,722
- 6
- 81
This doesn't work...I don't know why!
It is essentially a bit of code to add zeros to the beginning of any number less than 10. Everything else aside, why does it give me this error?
Code:
#! /usr/bin/ksh
month=$1
if [ $month -lt 10 ] ; then
month = "0${month}"
#echo $month
else
echo $month
fi
Code:
./test[4]: month: not found
