3 ms·
Depends on the task. Sed is typically used for search and replace and Awk is better suited for field based processing. Both these tools also have filtering feat
by asicsp 3y ago
Depends on the task. Sed is typically used for search and replace and Awk is better suited for field based processing. Both these tools also have filtering features (regexp based, line number based, range, etc).
See also: When to use grep, sed, awk, perl, etc https://unix.stackexchange.com/q/303044 https://unix.stackexchange.com/q/303044