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 
原文地址:https://www.cnblogs.com/bass6/p/5528203.html