hi everyone
i am facing a very strange problem . please help me why my while loop is not working.
below is my code
#!/bin/ksh
file=RCMC_ABC_999_080924_210813.DAR
echo ${file}
value=001
count=10
echo "abc"
echo ${count}
value=$((${value} + 1 ))
echo ${value}
while [[ "${count}" -lt 0 ]]
do
echo "aish"
count=$((${count} -1 ))
done
and the output of the above is
./a.sh
RCMC_ABC_999_080924_210813.DAR
abc
10
2