![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 61
weixin_43951166
这个作者很懒,什么都没留下…
展开
-
shell运算符
@[TOC]Shell运算符1、算术运算符expr 是一款表达式计算工具,使用它能完成表达式的求值操作注:1、完整的表达式要被 ` ` 包含,注意这个字符不是常用的单引号,在 Esc 键下边 2、运算符与表达式间要有空格[root@ss]# cat test.sh #!/bin/basha=10b=20#加法 ‘+’c=`expr $a + $b`#减法 ‘-’d=`expr $b - $a`#乘法 ‘\*’e=`expr $a \* $b`#除法 ‘/’f=`e原创 2021-11-12 18:10:38 · 1078 阅读 · 0 评论 -
ps -ef |grep nr-ue | grep -v grep|awk ‘{print $2}’|xargs sudo kill 2 >/dev/null 2>&1解析
ps -ef |grep nr-ue | grep -v grep|awk ‘{print $2}’|xargs sudo kill 2 >/dev/null 2>&11、ps -ef |grep nr-ue查询nr-uej进程2、ps -ef |grep nr-ue|grep -v grepgrep -v 是反向查找的意思,此处 grep -v grep 就是查找不含有 grep 字段的行3、ps -ef |grep nr-ue|grep -v grep | wc -l原创 2021-11-10 13:52:55 · 1320 阅读 · 0 评论