Software Testing / Learning brief

Tom saves and filters a test log with pipes

What this means in plain language

Tom sends test output and errors to a file, then uses grep, sort and uniq to find the most common failure.

Understand the full idea, step by step

Analogy: a water pipe with two outlets and some buckets. One outlet gives clean water. The other gives dirty water. Normally both pour into the same sink, so you cannot tell them apart. With a bucket under each outlet you can keep them apart. A pipe can also carry clean water straight into the next machine.

In the shell, the clean outlet is standard output (stdout, the normal results). The dirty outlet is standard error (stderr, the error messages). A bucket is a file. A pipe is the | sign.

PLAIN WORDS · 2 in this section
stdout
Short for standard output, where a command prints its results.
stderr
short for standard error, where a command prints problems

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Synthetic Daily List teaching scenario; selected publisher documentation scopes are stated in the source drawer. No live service configuration was tested.

What this brief simplifies: SYNTHETIC / TRAINING ONLY. Commands and policies use the stated local fixture and version; product screens, permissions and workflows can differ. Official figure reproduction is not included.

Sources for this brief — 3 sources
  1. Market practice

    GNU Bash Reference Manual ↗ — GNU · Bash 5.2 publisher tagged source — Selected Pipelines, Redirections, Environment, Shell Scripts, special parameters, errexit, pipefail, ENV/BASH_ENV and kill.

    Selected Pipelines, Redirections, Environment, Shell Scripts, special parameters, errexit, pipefail, ENV/BASH_ENV and kill. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Bash 5.2 publisher tagged source. This is not live service testing or a full-publication certification.

  2. Market practice

    GNU Coreutils manual ↗ — GNU · Coreutils 9.7 — Selected exit status, tail descriptor/name behavior, wc newline counts, uniq adjacency and chmod invocation.

    Selected exit status, tail descriptor/name behavior, wc newline counts, uniq adjacency and chmod invocation. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Coreutils 9.7. This is not live service testing or a full-publication certification.

  3. Market practice

    GNU grep publisher manual source ↗ — GNU · Unversioned publisher source read 7 November 2026; VERSION placeholder is not a certified edition — Selected introduction, matching control, -n, -F and exit status: 0 match, 1 no match, 2 error, with -q exception.

    Selected introduction, matching control, -n, -F and exit status: 0 match, 1 no match, 2 error, with -q exception. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Unversioned publisher source read 7 November 2026; VERSION placeholder is not a certified edition. This is not live service testing or a full-publication certification.

Learn this properly

START HERELinux pipes and redirection: save a test log and filter itSend test output to a file, catch the error messages too, and use pipes with grep, sort and uniq to find the most common failure.Opens at L0 Explain simply · about 16 min

Related briefs