Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
When comparing rare vs Grep, the Slant community recommends Grep for most people. In the question“What are the best command-line tools for searching plain-text data using regular expressions?” Grep is ranked 2nd while rare is ranked 10th.
Ranked in these QuestionsQuestion Ranking
Common Questions
Other Questions
No other questions
Pros
Pro Similar to grep/awk
Pro Fast regex parsing
Pro Realtime text analysis
Pro Full PCRE regex support
Pro Reads from STDIN
Pro Preinstalled on every Unix like system
Pro Searches any text file
Pro Reads from STDIN
You can search the output of any command just by piping into grep
.
Pro Searches multiple files
It is possible to instruct grep to search through multiple files specified on the command line or entire directory trees.
Pro Full PCRE regex support
Pro Fast
Searches through large collections of files well before the expected time.
Cons
No cons yet!
Con Hard to filter by file type
Want to search for my_function in PHP files only? find . -name '*.php' -exec grep my_function '{}' ;
Con Multiple, not fully compatible, implementations
The most known 2 are: BSD and GNU implementations which slightly differ in their capabilities and performance.