Issue
At my terminal prompt, echo 'Banana' | grep -oe 'n'
works as expected:
$ echo 'Banana' | grep -oe 'n'
n
n
but not echo 'Banana' | grep -eo 'n'
:
$ echo 'Banana' | grep -eo 'n'
grep: n: No such file or directory
Why does the order of -e
& -o
matter?
Solution
Please observe the outputs attached below. -e is for an expression it is considering o as expression in file n.
Answered By - Vijay Daswani