grep -w

[root@86 ~]# mysqladmin -uroot -p123456 -S /tmp/mysql.sock extended-status|grep -w "Com_update"
| Com_update #匹配单词 过滤出含 这个单词的那一行
[root@86 ~]# mysqladmin -uroot -p123456 -S /tmp/mysql.sock extended-status|grep -w "Com_update"
| Com_update                               | 28505       |
[root@86 ~]# mysqladmin -uroot -p123456 -S /tmp/mysql.sock extended-status|grep -w "Com_update"|gut -d"|" -f3
-bash: gut: command not found
[root@86 ~]# mysqladmin -uroot -p123456 -S /tmp/mysql.sock extended-status|grep -w "Com_update"|cut -d"|" -f3
 28626 

 

posted @ 2016-05-25 19:15  bass  阅读(695)  评论(0编辑  收藏  举报