随笔分类 -  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, 阅读全文
posted @ 2016-02-16 17:06 xiaohui163 阅读(282) 评论(0) 推荐(0) 编辑
摘要:curl -I -H "Host:bbs.wdzj.com" -s http://120.55.75.35/index.php 阅读全文
posted @ 2016-01-14 19:43 xiaohui163 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: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 "$@".... 阅读全文
posted @ 2015-05-22 07:59 xiaohui163 阅读(131) 评论(0) 推荐(0) 编辑
摘要: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 ... 阅读全文
posted @ 2015-05-22 07:47 xiaohui163 阅读(769) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-05-02 16:07 xiaohui163 阅读(479) 评论(0) 推荐(0) 编辑
摘要:1 #!/bin/bash 2 ########################################### 3 # 4 # version: 3.0.0 5 # creator: zenghui 6 # d... 阅读全文
posted @ 2015-04-16 13:44 xiaohui163 阅读(334) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-01-16 13:58 xiaohui163 阅读(396) 评论(0) 推荐(0) 编辑
摘要:1 #!/bin/bash 2 export PATH=$PATH:$JAVA_HOME/bin:/usr/local/lnmp/php5/bin:/usr/local/lnmp/php5/sbin 3 4 #start----------------------------------... 阅读全文
posted @ 2015-01-15 21:01 xiaohui163 阅读(296) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示