Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 969 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 969 Bytes

Unix Filter IO Scheme

A filter is a command that accepts input from stdin, transforms it in some way and outputs the transformed contents into stdout.

  • Filters are very easy to compose into UNIX pipelines.
  • Extremely handy when editing text in a text editor that allows selecting text, running it through a filter and replacing the selected text with the output. (vi and vim, even emacs, etc)

Filters are of two types:

  • Line filters - program transforms the input line by line
  • File filters - program transforms the whole input received via stdin at once

Related:

Reference:

Tags:

#literature-note #unix #cli