我怎麼能grep
號碼。我有以下數據Grep,號碼爲
[240465] SERVICE ALERT: localhost;demo-jms2:Critical Services;CRITICAL;SOFT;2;Disk Space,OutConnectorResponse-MCASMS,OutConnectorResponse-SPONSORED-SMS,
[240465] SERVICE EVENT HANDLER: localhost;demo-jms2:Critical Services;CRITICAL;SOFT;1;notify-service-by-email
我想grep
用數字「2」這個數據是經過「軟」的參數。在這裏我的問題是我收到兩條線,當我和2用grep自2第二行的時間戳包含..
'grep的「軟; 2''? – 2013-02-14 10:36:31