grep, sed and awk: build text-processing pipelines
10 steps · about 6 h 10 min · Beginner
- grep, sed and awk: Linux Text Processing with Practical Examples (article, GoLinuxCloud, 20 min)
It starts with the one-line rule for when to use each tool, so the rest of the list has a frame.
- Command Line Regex Tools: grep, sed, & awk for Beginners (video, YouTube, 25 min)
Watching the three commands run live makes the syntax easier to remember before you read the manuals.
- GNU Grep: Print lines that match patterns (doc, GNU Project, 30 min)
grep is the simplest tool, and the official manual covers the options and regex variants you will use constantly.
- Sed - An Introduction and Tutorial (tutorial, Grymoire (Bruce Barnett), 45 min)
It builds up sed from substitution to addresses and the pattern space, which is the core of how sed works.
- GNU sed, a stream editor (doc, GNU Project, 30 min)
Use it to look up commands, flags and the regex rules (BRE vs ERE) after the tutorial.
- Awk - A Tutorial and Introduction (tutorial, Grymoire (Bruce Barnett), 1 h)
It teaches fields, BEGIN/END blocks, variables and arrays, which are what separate awk from grep and sed.
- grep vs awk vs sed: Examples and Benchmarks (article, ComputingForGeeks, 25 min)
You now know all three tools, and this shows how to chain them in filter-then-extract pipelines and compares speed.
- Text Processing at Work: grep, sed, awk, cut, sort, uniq, tr & Regular Expressions (guide, KloudVin, 30 min)
It adds sort, uniq and cut and walks through the classic top-talkers pipeline, reading the data flow left to right.
- sed/awk/grep Cheatsheet - Linux Text Processing Reference (reference, laohand.com, 15 min)
Keep this open while you practise, and note its advice to preview sed -i edits or back them up with -i.bak first.
- GAWK: Effective AWK Programming (doc, GNU Project, 1 h 30 min)
This is the last step: the full awk reference, for functions, regex details and larger programs once the basics are solid.