mpfilter predicate-expr

Read s-expressions from standard input, applies the procedure-expr to them, and writes the s-expressions to standard output if the predicate returned a true value. The predicate may write to standard error, but standard input and output are inaccessible.

Examples

$ echo "1 2 3 4 5 6" | mpfilter 'even?'
2
4
6