- A small grep clone
- grep [OPTIONS...] <pattern> <path>
- grep <pattern> [OPTIONS...] <path>
- grep <pattern> <path> [OPTIONS...]
- -r
- Recusively search the given directory for the given pattern.
- -rf
- Recusively search the given directory and subdirectories for the given pattern.
- -n
- Append line numbers to the output.
- -c
- Instead of printing the found matches print the number of found matches.
- -e
- Show errors thrown.
- --help
- Print usage information.