发布时间:2013-05-15 11:53:26
#!/bin/bashtomcat1="/usr/local/tomcat1/"tomcat2="/usr/local/tomcat2/"tomcat3="/usr/local/tomcat3/"tomcat4="/usr/local/tomcat4/"tomcat=($tomcat1 $tomcat2 $tomcat3 $tomcat4)#for((i=0;i<${#tomcat[@]};i++));do# ${tomcat[$i]}bin/shutdown.sh >> /dev/null 2>&1# &n.........【阅读全文】
发布时间:2013-05-14 10:22:53
安装依赖包yum -y install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel下载wget http://git-core.googlecode.com/files/git-1.8.2.3.tar.gztar zxvf git-1.8.2.3.tar.gz cd git-1.8.2.3dir./configure makemake install......【阅读全文】
发布时间:2013-05-10 15:01:39
q 匹配退出:sed -e '/.birdman*/q' config.xml& 匹配字符串后添加:sed -e 's/birdman/&aa/' config.xml r:sed -i '/birdman/r aa.txt' config.xml 在匹配行后附加aa.txt中的文件内容到config.xml 中w:sed -e '/birdman/w aa.txt' config.xml 将匹配birdman的行写入到aa.txt 中a:sed -i '/<bird.........【阅读全文】