ENCYCLOPEDIA 4U .com



Encyclopedia Home Page

Google
  Web Encyclopedia4u.com

 

Filter program

A filter program is classically a UNIX program that is designed to be used as part of a pipeline of two or more UNIX utilities. Generally a filter program will read its standard input and write to its standard output and do little else. Conventionally a filter program distinguishes itself by being fairly simple and performing essentially one operation, usually some sort of simple transformation of its input data.

The classic filter would be grep; here's an example:

 cut -d : -f 1 
This finds all registered users that have "foo" as part of their username.

Common UNIX filter programs are: cat, cut, grep, head, sort, uniq and tail. Programs like awk and sed can be used to build quite complex filters because they are fully programmable.

A more complete list of UNIX filter programs:

  • awk
  • cat
  • comm
  • cut
  • expand
  • compress
  • fold
  • grep
  • head
  • nl
  • pr
  • sed
  • sh
  • sort
  • split
  • strings
  • tail
  • tee
  • tr
  • uniq
  • wc




Content on this web site is provided for informational purposes only. We accept no responsibility for any loss, injury or inconvenience sustained by any person resulting from information published on this site. We encourage you to verify any critical information with the relevant authorities.



Copyright © 2005 Par Web Solutions All Rights reserved.
| Privacy

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Filter program".