4 ms·
Each has its uses, and there are things which are more easily achieved in one than the other. (I have a set of scripts I use to parse NOAA's weather web page t
by dredmorbius 3y ago
Each has its uses, and there are things which are more easily achieved in one than the other.
(I have a set of scripts I use to parse NOAA's weather web page to plain text, and ended up resorting to both sed and awk in the process, and haven't yet tried to simplify that to a single script.)
Sed is usually used for simple text substitutions and manipulations.
Awk has built-in record and array concepts, as well as more standard programming constructs (loops, if/then, case/switch, printf, and external system interfaces (launching and/or reading from external programmes).
My view is that the tools overlap considerably, but also complement one another strongly.