Ravi Sir's Cards › AWS
sed vs awk
This comparison card contrasts sed and awk. sed is described as lines and text. awk is described as fields and numbers. The card pairs sed with edit configs, and awk with analyse logs.
Read card text
What this card says
Thinks in
sed
Lines and text.
awk
Fields and numbers.
Key points
Replace, delete, insert.
Columns, sums, reports.
Example
sed 's/a/b/' f
Use when
Edit configs.
Analyse logs.