我试图为所有Ui\.未遵循Line或甚至只是信件的情况进行grepL
Ui\.
Line
L
编写正则表达式以查找特定字符串的所有实例而不是其他字符串的正确方法是什么?
使用前瞻
grep "Ui\.(?!L)" * bash: !L: event not found grep "Ui\.(?!(Line))" * nothing
regex grep regex-lookarounds
grep ×1
regex ×1
regex-lookarounds ×1