CoreBeginner35 min read
2. Pipes & grep
Linux Shell Daily · 12 pages source format
Connect commands; find needles in logs.
What you'll learn
- |
- grep
- head/tail
Key idea
Pipes send stdout of one command to stdin of the next.
Quick check
grep is for…
Do this now
Write 3 notes on: Pipes.
Clear?
Practice
Download a sample log and extract ERROR lines.
cat app.log | grep -i error | tail -n 20Do this now
Commit one file practicing Pipes.
Clear?