Shell Pipeline Visualisation

by Michael Homer

Enter a shell pipeline in the text box above and it will be rendered to the left. Solid black arrows represent standard output, and dashed pink arrows standard error. Nodes can be dragged to reposition.

The visualisation supports:

  • Pipelines cmd1 | other command | grep q
  • Output redirection command > file
  • Input redirection command < file
  • Redirecting specific file descriptors cmd 2>errlog
  • Duplicating file descriptors cmd 2>&1 | grep
  • Closing file descriptors cmd 2>&-
  • Bash/ksh/zsh process substitution cmd >(inner...) and cmd <(inner...)

It also includes special treatment for some commands:

  • tee will split the input stream (e.g.)
  • cat renders an ordered representation of the constituents (e.g.)

All combinations of supported features also function (e.g.).