我希望我的 shell 只能找出引用中的模式,但结果也返回了类似"MSGxxxxx"
Anybody who can give me some advice?
这是我的脚本:
if egrep -e 'Msg|duplicate|deadlock|status = -|terminated due to disconnect' MYFILE.log
then
echo "I found something in your RAW data."
else
echo "Nothing found!"
fi