#gerp
Half the time I try to run grep I end up typing gerp. I thought a good learning experience with golang would be to write a grep
-like command line application that does the kind of grepping I usually do, which is looking for something in all the files in a directory, or also all the directories underneath as well (ie. recursive). Also I prefer to put the directory to search first, then the patter, which is backwards when compared to grep.
##Build and tests
##Example
This will check all the files in the test directory to see if they contain the pattern "hi".
curtis$ ./gerp test hi
test/test_grep.txt: hi
##Issues
- Can't search a single file yet (doesn't know it's being pointed to a single file instead of a directory)
- Doesn't know a file is a binary file (feature I'd like to add)