摘要: 1 #!/bin/env sh 2 3 function bb(){ 4 declare -i p=1 5 until [ $p -gt $1 ];do 6 declare -i z=1 7 until [ $z -gt $p ];do 8 echo -ne "${z}X${p}=$[z*p]\t" 阅读全文
posted @ 2020-05-26 20:20 ascertain 阅读(405) 评论(0) 推荐(0) 编辑
摘要: #!/bin/env sh program=`basename $0|awk -F. '{print $1}'` lock=/var/lock/subsys/$program source /etc/rc.d/init.d/functions function start(){ if [ -e $l 阅读全文
posted @ 2020-05-26 19:11 ascertain 阅读(138) 评论(0) 推荐(0) 编辑
摘要: curl --request HEAD --include jd.com 用HEAD方法请求,必须加--include,否则无响应 --include Include protocol headers in the output curl会打印header信息 --interface Specify 阅读全文
posted @ 2020-05-26 11:53 ascertain 阅读(175) 评论(0) 推荐(0) 编辑
摘要: bash中即使declare -x或export的变量,子shell可以引用和改变,但是该改变无法作用到父shell中. 阅读全文
posted @ 2020-05-26 10:50 ascertain 阅读(137) 评论(0) 推荐(0) 编辑