I encountered a problem when reading grep
manual refering to it -e
option,
It say:
-e pattern, --regexp=pattern
Specify a pattern used during the search of the input: an input
line is selected if it matches any of the specified patterns.
This option is most useful when multiple -e options are used to
specify multiple patterns, or when a pattern begins with a dash
(`-').
I'm confused about what's the e
short for? There's not an answer could searched by google.
Additionally, it's easy to understand that
"This option is most useful when multiple -e options are used to specify multiple patterns"
but what does this mean?
"or when a pattern begins with a dash (`-')."
Could you please show an example?