5 ms·
> Real fgrep does not implement -r That's BS. The fgrep on my system – GNU grep 3.1 – provides recursive search (-r). What now, are you claiming that's not "re
by adwn 7y ago
> Real fgrep does not implement -r
That's BS. The fgrep on my system – GNU grep 3.1 – provides recursive search (-r). What now, are you claiming that's not "real fgrep"? [1]
> that would be implementing tools within tools, which is against the UNIX®️ philosophy
Even more BS. Or are you telling me that "rm -r" is also against the "UNIX philosophy"?
> /usr/bin/find . -depth -type f -print | /usr/bin/xargs -i /usr/bin/fgrep string '{}'
Terrible, terrible advice. Cumbersome, error-prone, and slow as molasses. A quick test: Searching for 'asdfadsgf' in the Linux kernel repository takes 0.25 s using rg, 12 s using GNU fgrep -f, and 228 s (!) using your command.
You know, when your ideology results in the worst results of all, you should really reconsider your ideology.
[1] https://en.wikipedia.org/wiki/No_true_Scotsman https://en.wikipedia.org/wiki/No_true_Scotsman
- robohoe 7y agoThis is why Unix is great. It gives you enough tools to shoot yourself in the foot.
- yjftsjthsd-h 7y ago"Unix was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."
- deleted 7y ago[deleted]
- Annatar 7y ago"What now, are you claiming that's not "real fgrep"? GNU stands for GNU is not UNIX®️.