The filter is a program that gets its data from the input stream and prints the results to the output stream. Examples – grep, sort, tail, head, cut, etc.…

BY Best Interview Question ON 11 Apr 2019