This spin to a few other way to do grep.
A few have suggested on IRC and facebook, the i parameter is to make keyword not case sensitive.
grep -iR keyword directory
Another suggestion on IRC.
grep -iR --exclude=file-to-ignore keyword directory
Another tweet i have receive is,
Then the last one I discovered on google is ack-grep
ack-grep keyword directoryand again, -i make case insensitive search.
ack-grep -i keyword directory
ack-grep output is nicer, and automatically ignore binary. It is slightly different than grep. But both get the job done., to me anyway
No comments:
Post a Comment