3 ms·
As I have mentioned in another reply, just because you know grep does not mean you should stop there. Especially when teaching others, you should find the optim
by herpderperator 7y ago
As I have mentioned in another reply, just because you know grep does not mean you should stop there. Especially when teaching others, you should find the optimal way and mention that you _could_ also use grep if you were in a rush.
You could always do things the quick-and-dirty way, but does that help you grow as a programmer? You could write Python code that looks like C, like many people do when they come from a C background, or you could learn how to write Pythonic code by reading the documentation and examples.
> Knowing how grep works lets you do this sort of thing to any program that outputs text.
It's worth noting that I could say the same about strace. Once you know strace, you could run it against any program that uses system calls, which by the way, is many. :-)