./mini-grep [-q] -e PATTERN [FILE...]
mini-grep
goes through every argument in FILE and prints the whole
line in which PATTERN is found. By default mini-grep
also outputs
the line number of each printed line.
- PATTERN has to be a valid regex
- FILE can be zero or more arguments. If zero args are given,
mini-grep
will parse entries from the standard input. - If given, the
-q
options only outputs lines but omits the matching
line numbers.