1.查找指定文件
find packages/ -name Camear.java
2.查找保护指定内容的文件
grep -rinws --include=*.java "Sound" packages/apps/SoundRecorder/
3.批量替换packages目录下的文件getInternalStorageDirectory替换成getExternalStorageDirectory
sed -i "s/getInternalStorageDirectory/getExternalStorageDirectory/g" `grep getInternalStorageDirectory -rl packages/`