find . -type f -name *.java ! -name "R.java" | xargs grep Global_ >~/log.txt
find . -type f -regex '..java|..xml' ! -name "R.java" | xargs grep Global_ >~/log.txt
例如要找txt格式,doc格式和mp3格式的文件:
find . -regex '..txt|..doc|.*.mp3'
sed -i 's/reload(sys)/import importlib/g' grep "reload(sys)" -rl ./