- Using awk instead of sed has the price of performance and size
- compared to sed and ed, awk takes a substantially longer time to load, and does its job at a considerably slower pace
- The real distinguishing point between sed and awk as a text processor is that awk is able to work with a persistent context, whereas capabilities of sed in this area are limited to non-existent. If you - for instance - would have to sum one field to a total you would do it with awk (it would be possible to do it with sed, but would be a nightmare - poorly suited tool for the job)
Tuesday, July 29, 2008
Why not to use awk when sed can do the job?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment