yum downgrade 2015/03/25 | 基本知识,运维 | Zhiming Zhang | 暂无评论 | 1498 views Default yum downgrade vsftpd-2.0.5-12.el5 1 yum downgrade vsftpd-2.0.5-12.el5
shell中使用while循环ssh读取一行纪录 2015/03/16 | shell | Zhiming Zhang | 暂无评论 | 2652 views Default cat 33.txt |while read LINE do result=`ssh -n root@192.168.0.101 date` echo $result done 12345 cat 33.txt |while read LINEdo result=`ssh -n root@192.168.0.101 date` echo $resultdone -n
ruby regular Expressions 2015/03/03 | 基本知识,运维 | Zhiming Zhang | 暂无评论 | 1421 views Default #!/usr/local/bin/ruby -w def show_regexp(a,re) if a =~ re "#{$`}<<#{$&}>>#{$'}" else "no match" end end puts show_regexp('very interesting',/t/) puts show_regexp('Fats Waller',/a/) 123456789101112 #!/usr/local/bin/ruby -wdef show_regexp(a,re) if a =~ re "#{$`}<<#{$&}>>#{$'}" else "no match" endend puts show_regexp('very interesting',/t/) puts show_regexp('Fats Waller',/a/)