Skip to content

Latest commit

 

History

History

20220112093437

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

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