![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
莫薇
荆棘之上仰望的人会看透风尘
展开
-
shell学习1--变量/数组/字符串
[root@localhost shell]# cat st1.sh #!/bin/bash echo "Hello World!" #------------shell variables-------------- #for file in `ls /etc` #do #echo "${file}" #done #for skill in Ada Coffee Action Java;do ...转载 2019-02-25 21:54:54 · 208 阅读 · 0 评论 -
one of patch打包
#!/bin/bash for file in *.zip do dir_optach=`ls -lrt $file| awk '{print $9}'|awk -F _ '{print $1}' |sed 's/p*//g'` num=`ls -lrt|egrep $dir_optach|wc -l` ...原创 2019-02-25 21:52:49 · 301 阅读 · 0 评论