![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
beizhetaiyangxingzou
这个作者很懒,什么都没留下…
展开
-
定制bash提示符
bash 提示符 特殊字符代码转载 2011-01-18 14:13:00 · 293 阅读 · 0 评论 -
awk摘录note
awk note转载 2011-01-18 13:38:00 · 648 阅读 · 1 评论 -
sed摘录note
sed note转载 2011-01-18 13:46:00 · 444 阅读 · 0 评论 -
shell中判断此进程是否已经启动
#!/bin/bash stats=`ps -ef | grep "a.sh" | grep -v "grep"` pids=`echo $stats | awk '{print $2}'` current_pid=$$ for pid in $pids do if [ "$pid" != "$current_pid" ] then echo "a.sh is runn原创 2015-01-21 11:40:16 · 1236 阅读 · 0 评论