๐ A filter is a program that gets data from standard input, performs some manipulation of the data, and then writes its results to standard output.
Auxiliary input may come from command line flags or configuration files, while auxiliary output may go to standard error.
๐ Most common functions:
โถ๏ธ Convert data to a different format
โถ๏ธ Add printer instructions to the beginning of each document
โถ๏ธ Add, delete, or modify data in a document
๐ Unix has many filter programs, most common are: cat, cut, grep,
Go Playground: https://play.golang.org/p/s8FwQRkZXdr
Top comments (0)