Dear all
How to write the shell script for the following statement:
(C programming)
for (i=0;i<30;i++) {
if i=1
continue *skip this number
(To do function here....)
...
}
similar statement in while loop....
I wrote the script in sh shell:
i=0
while [ $i -ng 30 ]
do
if [ $i -eq 1 ]
then continue
fi
(To do function here....)
i=$1+1
done
Unlucky, I can't get the correct result, can anyone help me?
Best regards