These are my personal notes that I am making on my journey through computer science. It's just a great way for me to organize my thoughts and just maybe, I'll help someone else along the way. If this was any help, leave a comment.
Tuesday, April 26, 2011
How to grep in unix
The "grep" command allows you to find text within a file
grep -r -i main-content ../../
grep [options] [search query / pattern] [where]
Some options
-r / recursive: read all files under each directory, recursively
No comments:
Post a Comment