摘要:
1. for in 1 for i in `seq 1 10` #seq 生成从1到10 如果生成从10到1则写作 seq 10 -1 1 2 do 3 echo $i 4 done for in 也可以循环出字符串 for i in where is a will there is a way d 阅读全文
posted @ 2020-02-09 23:47
wilson'blog
阅读(177)
评论(0)
推荐(0)
摘要:
1 if [ ! -e /tmp/1234 ] #-e 为检测目录或文件是否存在 !为取反 2 then 3 mkdir -v /tmp/1234 4 echo 'ok' 5 fi if else 1 if [ $USER == 'root' ] 2 then 3 echo 'hey admin' 阅读全文
posted @ 2020-02-09 16:15
wilson'blog
阅读(217)
评论(0)
推荐(0)