grep -inrw 字符串 .grep -i是忽略大小寫的意思cat xxx|grep -i mem 會把文本里的MEM,meM.....等無關乎大小寫的內容取出來grep -inrwgrep "main()" . -r --include *.{php,html}grep -inrs "main()" . --include *.{php,html}快速搜索:git grep -n order ./app/models 搜 order