Pipeline

noun

say it: “PYPE-lyne” /ˈpaɪplaɪn/

A chain of commands joined by the | symbol, where each command's output becomes the next command's input.

What is a pipeline in bash?

A pipeline is a chain of commands joined by pipes (|): each command's output becomes the next command's input, with no file in between. Read it from the left, saying what each stage hands on. Build one a stage at a time, checking the output after each.

cut -d, -f5 orders.csv | tail -n +2 | sort | uniq -c | sort -rn | head -n 3

In a sentence

  • “The pipeline took the cities out of orders.csv, sorted them, counted each one and printed the busiest first.”
  • “Maya built the pipeline a stage at a time, checking the output before adding the next command.”

Level: Apprentice · More Unix terms at this level

Updated

In other subjects