0
爲什麼不是這個表達式工作:
find ./ -regex '.*[mh]$' | sort | grep --exclude="UnitTests" *
以下工作:
find ./ -regex '.*[mh]$' | sort
find ./ -regex '.*[mh]$' | sort | grep "UnitTests"
當我加入了 「 - 排除」(如我想要的只是UnitTests中的所有內容),我似乎很難過。
我在Mac OSX
可能的重複[爲什麼不是這個正則表達式工作:找到./ -regex'。* \(m \ | h \)$](http://stackoverflow.com/questions/5905493/why-isnt-這個正則表達式工作發現正則表達式mh) – tchrist 2011-05-06 00:54:38