find: 用來搜尋目錄下面的特定檔案
grep: 用來搜尋該檔案是否有包含特定關鍵字
如果要配合運作可以用xargs

example :
//從根目錄搜尋所有index.php的檔名,裡面是否有包含helloworld關鍵字
find / -name index.php | xargs grep helloworld

undefined

arrow
arrow
    全站熱搜

    helloworld 發表在 痞客邦 留言(0) 人氣()