歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> SHELL編程 >> shell腳本過濾段落內容

shell腳本過濾段落內容

日期:2017/3/1 14:02:26   编辑:SHELL編程
shell腳本過濾段落內容 在研究show engine innodb status 輸出信息,為了看其中的insert buffer部分信息,寫了個腳本 # mysql -uroot -e 'show engine innodb status \G' |grep -E -A8 -B1 --color 'INSERT BUFFER' ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 37064, free list len 21130, seg size 58195, 22172798 merges merged operations: insert 88714186, delete mark 32775614, delete 18942413 discarded operations: insert 9204, delete mark 8597, delete 12 Hash table size 42499631, node heap has 151066 buffer(s) 3275.24 hash searches/s, 647.12 non-hash searches/s
Copyright © Linux教程網 All Rights Reserved