3 ms·
Ah, that makes sense. I'm glad you brought that up because I didn't even notice that I'm just used to adding -R to my grep commands when I need recursive search
by heywoodlh 4y ago
Ah, that makes sense. I'm glad you brought that up because I didn't even notice that I'm just used to adding -R to my grep commands when I need recursive searching.
I can totally see how that would be a small, but impactful difference.
- adrian_b 4y agoWhenever you normally use some programs with other options than their defaults, it is simpler to define aliases for those programs. There are many common programs that I never use with their standard default options (which are very bad, IMO), e.g. cp, mv, ln, rm, rsync, date and many others, so I always define aliases for them, which include those options that I want to use by default. So for grep, the recursive search should be included in the grep alias. There is no need for a new program in order to have this feature.
- mjochim 4y ago> Whenever you normally use some programs with other options than their defaults, it is simpler to define aliases for those programs. I don't buy into this. These aliases tend to come at the cost, or at least the risk, that your workflow breaks when you are at another computer or working on a shell on some server that doesn't have this alias. That's why I like additional aliases, like l for ls, but with your favorite options. But I dislike aliases that change default behavior - and often in an intransparent way.
- burntsushi 4y agoripgrep adds more than "recursive search by default." And it specifically adds things that you cannot easily put into an alias.