自由行

2012-02-08

find&grep查找工具的黄金搭档

Filed under: 随笔 — thomas @ 10:26

在目前下所有特定类型的文件找特征的内容。比如:
在所有cpp文件中,查找keyword。
命令行为:
find . -name “*.cpp” | xargs grep -nH “Keyword”

2 Comments »

  1. bns gold…

    You ‘re so smart….

    Trackback by bns gold — 2016-03-24 @ 13:31

  2. u4fifa.com…

    You’re very professional….

    Trackback by u4fifa.com — 2016-08-16 @ 09:29

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress