歡迎您光臨本站 註冊首頁

linux下find和grep組合查找

←手機掃碼閱讀     火星人 @ 2014-03-23 , reply:0

比如查找/usr/include目錄下所有*.h文件中包含"wcsncat"的行:

find /usr/include -name "*.h" -exec grep "wcsncat" {} \;

[火星人 ] linux下find和grep組合查找已經有495次圍觀

http://coctec.com/docs/linux/show-post-113772.html