What is filter in Unix?

devquora
devquora

Posted On: Mar 28, 2020

 

A filter in UNIX is a program that gets most of its data from its standard input (the main input stream) and writes its main results to its standard output (the main output stream).

Auxiliary data may come from command line flags or configuration files, while auxiliary output may go to standard error. The command format for getting data from a device or file other than standard input is the input operator (<). Likewise, to send data to a device or file other than standard output is the output operator (>). To append data to an existing output file, one can use the append operator (>>). Filters may be strung together into a pipeline with a pipe operator ("|"). This operator highlights that the main output of the command to the left is passed as the main input to the command on the right.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Unix interview questions

    What do you understand by the term filters?

    The term “filters” is frequently used to allude to any program, which can take inputs from standard inputs..

    Unix interview questions

    Differentiate between paging and swapping?

    Only the required memory pages are moved to the primary memory for execution...

    Unix interview questions

    List some of the frequent shells used in Unix along with their indicators

    Some of the frequently used shells in UNIX include the following:..