in reply to What is faster?
but then there is also the possibility to bendchmark your script in order to find out what's faster on YOUR system. You will have to benchmark again if you change the system.
In general: I would go the second way and not rely on any external grep-command to exist. The problems with them are, as far as I can see:
|
|---|