Modern QA2026Hands-On Exercise — tiles
Log inJoin
30 / 55 · 19 Linux & Command Line · Pipes and Redirection← prev⊞ allnext →☰ Read as one page

4.7Hands-On Exercise

  1. Use a pipe chain to find the 5 most common words in a text file
  2. Redirect both stdout and stderr of a test run to separate files
  3. Use tail -f to monitor a log file while running tests in another terminal
  4. Build a pipe that analyzes an access log: count requests by status code, showing the top 5
  5. Use tee to save curl output to a file while also piping it through jq
  6. Write a one-liner that finds all .spec.ts files containing test.only and lists them with line numbers