ssej is a multicore stream processing tool you can use from the command line to work with text.
$ cat /usr/share/dict/words|ssej -m 'line.length'
$ cat /usr/share/dict/words|ssej -f 'line.length < 10'
$ cat /usr/share/dict/words|ssej -g 'line.length < 10'
$ cat /usr/share/dict/words|ssej -g "line[0]" -r "(p||'').length > c.length ? p : c"
Pronounced "essay"
Copyright (c) 2012 Sean Braithwaite, See LICENSE.txt for further details.