in reply to Re^2: pattern match -vs- *ix grep
in thread pattern match -vs- *ix grep
You're missing the point. In addition to any performance differences, the snippet has other subtle differences from grep, some of which are undesirable. Typing
would not have done anything unexpected at all.$ grep '| rm -rf *' 'ouch'
If you want to demonstrate that a simple Perl program is better or faster than a long-standing utility, you need to put more thought into what that utility does. Otherwise the comparison is unfair or meaningless.
|
|---|