30 / 55 · 19 Linux & Command Line · Pipes and Redirection← prev⊞ allnext →☰ Read as one page
4.7Hands-On Exercise
- Use a pipe chain to find the 5 most common words in a text file
- Redirect both stdout and stderr of a test run to separate files
- Use
tail -fto monitor a log file while running tests in another terminal - Build a pipe that analyzes an access log: count requests by status code, showing the top 5
- Use
teeto save curl output to a file while also piping it through jq - Write a one-liner that finds all
.spec.tsfiles containingtest.onlyand lists them with line numbers