egrep 'session\.[^0].*' i
将排除
session.1.something
session.2.something
session.abc.something
session.def.something
您将如何修改正则表达式以排除不 abc?
我原以为这会起作用,但事实并非如此
egrep 'session\.^(abc).*' i
我想回来
session.1.something
session.2.something
session.def.something