DEV Community

Jesus Gonzalez
Jesus Gonzalez

Posted on

Line filter program that removes digits

๐Ÿ“Œ 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

Alt Text

Top comments (0)