Source From Here
Question
I am working on writing some scripts to Grep certain directories, but these directories contain all sorts of file types. I want to grep just .h and .cpp for now, but maybe a few others in the future.
Can anyone show me how I would now add just specific file extensions?
How-To
Just use the --include parameter, like this:
Question
I am working on writing some scripts to Grep certain directories, but these directories contain all sorts of file types. I want to grep just .h and .cpp for now, but maybe a few others in the future.
Can anyone show me how I would now add just specific file extensions?
How-To
Just use the --include parameter, like this:
沒有留言:
張貼留言