Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities for invoking grep
Documentation
grep :: Producer Text IO () -> Producer Text IO () Source #
Takes a Text
stream and runs it through a grep
process, returning
a stream of results. The original command line arguments are passed to
the process.
grepForApp :: Producer Text IO () -> Producer Text IO () Source #
Like grep
, but if the input is not prefixed with a file and line
number, i. e. is not valid grep -nH
output, then adds -nH
(-n
:
with line number, -H
: with file name) to the grep
command line
arguments.