随笔分类 - Shell
摘要:1 group='www_ wwwhuidu_' 2 echo "*********************" 3 for i in $group 4 do 5 echo "* $a,$i组" 6 list2[$a]=$i 7 a=`expr $a + 1` 8 done 9 echo "* $a,
阅读全文
摘要:curl -I -H "Host:bbs.wdzj.com" -s http://120.55.75.35/index.php
阅读全文
摘要:1, $*与$@区别cat a.sh#!/bin/bashfor i in $* #这里换成$@也是一样的结果doecho $idonesh a.sh 1 '2 3'123vi a.shfor i in "$*"...sh a.sh 1 '2 3'1 2 3vi a.shfor i in "$@"....
阅读全文
摘要:1 [root@zenghui expect]# cat ssh_dsa.exp 2 #!/usr/bin/expect 3 set ip [lindex $argv 0] 4 set pass [lindex $argv 1] 5 set port [lindex $argv 2] 6 set ...
阅读全文
摘要:1 #!/bin/bash 2 TEMP=`getopt -o hm: --long aai:,mai: -n 'getopts.sh' -- "$@"` 3 eval set -- "$TEMP" 4 while true 5 do 6 case "$1" in 7 -h|--aai...
阅读全文
摘要:1 #!/bin/bash 2 ########################################### 3 # 4 # version: 3.0.0 5 # creator: zenghui 6 # d...
阅读全文
摘要:1 #!/bin/bash 2 3 #write by zhumaohai(admin#centos.bz) 4 #author blog: www.centos.bz 5 6 7 #显示菜单(单选) 8 display_menu(){ 9 local soft=$1 10...
阅读全文
摘要:1 #!/bin/bash 2 export PATH=$PATH:$JAVA_HOME/bin:/usr/local/lnmp/php5/bin:/usr/local/lnmp/php5/sbin 3 4 #start----------------------------------...
阅读全文