Introducing UNIX and Linux |
Overview |
Choosing between the three filtersIt will be apparent that anything Grep or Speed may be important if the data you wish to filter is large, or your UNIX system is small and not very powerful. Since Sed does more than the other two utilities, it is almost certainly slower. Unless you really need the facilities offered by Sed, then it will be easier to remember how to use the other two utilities. Extended regular expressions are only available to Grep. Finally, some operations are not easy to perform using Sed - try coding the following using only Sed: tr A-Z a-z grep -l abc * |
Copyright © 2002 Mike Joy, Stephen Jarvis and Michael Luck