!hep grep
grep <pattern> <list> # filters the items in <list> by <pattern>
grep -C <n> <pattern> <list> # filter items in <list> by <pattern> and include <n> items before and after each matched item
grep -v <pattern> <list> # filter items in <list> not matching <pattern>
But we should be able to combine flags in a single command, more like:
Currently
-v
and-C
are separate commands:But we should be able to combine flags in a single command, more like:
See here for an example of cli opts parsing.