3 ms·
> awk doesn't offer that much more than sed The one huge thing that sed is particularly bad at (unless I don't know the particular trick yet) is to split field
by majewsky 9y ago
> awk doesn't offer that much more than sed
The one huge thing that sed is particularly bad at (unless I don't know the particular trick yet) is to split fields on a pattern. I frequently have pipes where sed is used for most of the text-processing, but then cut is used to select one (or multiple) character-separated fields, or awk is used to select one (or multiple) whitespace-separated fields. I only go one step further (usually to Perl) when operations involve multiple lines, e.g. when columns need to be summed up.