grep ‘–‘ (two dashes/hyphens) doesn’t work
ls -a1 | grep ‘–‘
Usage: grep [OPTION]… PATTERN [FILE]…
Try ‘grep –help’ for more information.
Solution:
Apparently ‘-X’ won’t worth either.
ls -a1 | grep -- '--'
is the solution.
ls -a1 | grep ‘–‘
Usage: grep [OPTION]… PATTERN [FILE]…
Try ‘grep –help’ for more information.
Solution:
Apparently ‘-X’ won’t worth either.
ls -a1 | grep -- '--'
is the solution.