shell变量的简单说明
$*
$@
区别
shift 参数向前移一位,移动位置变量。
$?
$n
$#
$0
$!
$$
#!/bin/sh
pidpath=/tmp/p.pid
if [ -f "$pidpath" ]
then
kill -USR2 `cat $pidpath ` 》/dev/null 2>&1
rm -f $pidpath
fi
echo $$ > $pidpath
sleep 300
系统中某一个脚本同时只能运行一个的时候
bash内置命令
echo
eval
exec
export
read
shift
exit
time
expr
。。等等很多
(()) let expr bc()
在终端中 man cd 可查看
字符子串
#开头
%结尾开始
四则运算计算器
let i=i+8 == ((i=i+8))
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。