shell 分支/循环

时间:2022-04-11 17:01:42
if((i%==)); then
patern="Update"
else
patern="Read"
fi
case $ in
"-h")
if [ $# -lt ]
then
helpInfo
else
errorUse $@
fi
;;
"-d")
if [ $# -lt ]
then
noDirectory
elif [ $# -gt ]
then
errorUse $@
else
DIR=$
fi
;;
*)
errorUse $@
;;
esac
for i in `seq `
do
...
done
------------------->$ seq 
------------------->$ seq  
------------------->$ seq   
------------------->$ for i in {..}; do echo "$i"; done