当前位置: 技术问答>linux和unix
求一个linux 查询字符串的 方法
来源: 互联网 发布时间:2016-12-29
本文导语: Java Runtime: Sun Microsystems Inc. 1.6.0 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre Heap sizes: current=7680k free=7196k max=659264k JVM args: -Dactivemq.classpath=/usr/local/apache-activemq-5.5.0/conf; -Dactivemq.home=/usr/local/apache-activemq-5...
Java Runtime: Sun Microsystems Inc. 1.6.0 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
Heap sizes: current=7680k free=7196k max=659264k
JVM args: -Dactivemq.classpath=/usr/local/apache-activemq-5.5.0/conf; -Dactivemq.home=/usr/local/apache-activemq-5.5.0 -Dactivemq.base=/usr/local/apache-activemq-5.5.0
ACTIVEMQ_HOME: /usr/local/apache-activemq-5.5.0
ACTIVEMQ_BASE: /usr/local/apache-activemq-5.5.0
Connecting to pid: 9916
QueueSize = 2000
用什么方法能得到 QueueSize = 2000, 这个2000的值呢
Heap sizes: current=7680k free=7196k max=659264k
JVM args: -Dactivemq.classpath=/usr/local/apache-activemq-5.5.0/conf; -Dactivemq.home=/usr/local/apache-activemq-5.5.0 -Dactivemq.base=/usr/local/apache-activemq-5.5.0
ACTIVEMQ_HOME: /usr/local/apache-activemq-5.5.0
ACTIVEMQ_BASE: /usr/local/apache-activemq-5.5.0
Connecting to pid: 9916
QueueSize = 2000
用什么方法能得到 QueueSize = 2000, 这个2000的值呢
|
echo "QueueSize = 2000" | grep "QueueSize" | awk '{gsub(/[^0-9]*/,"");print $0}'