Ravi Sir's Cards › AWS
awk vs sed
This comparison card contrasts awk and sed. awk is described as columns and maths. sed is described as edit lines.
Read card text
What this card says
Text
awk
Columns and maths.
sed
Edit lines.
Key points
Fields, sums, groups.
Substitute, delete, insert.
Example
awk -F, '{s+=$3}END{print s}'
Use when
Reports.
Config edits.