Solaris X86中的GREP命令捕获特殊角色



我想捕获perticular string string,即更新kplustp..service set service_name =" positionService",serviceType ='z',hostName =" abcd =" abcd =" abcd" in Log file in Log file tan in Log file tan in log perticular path/主页/abc/xyz.log

我正在使用以下命令做

grep -i "UPDATE kplustp..Service SET Service_Name = "PositionService", ServiceType = 'Z'" /home/adc/xyz.log 

但是它不起作用,可能是由于字符串中的特殊字符。

如何做?

没有我的Solaris盒子,但请尝试以下操作:

grep -i 'UPDATE kplustp..Service SET Service_Name = "PositionService", ServiceType = 'Z'' /home/adc/xyz.log 

最新更新