I want to grep for the string "-X" in a file but it's confusing this as a command line argument.
I've tried
grep "-X"
grep \-X
grep '-X'
I want to grep for the string "-X" in a file but it's confusing this as a command line argument.
I've tried
grep "-X"
grep \-X
grep '-X'
I dont have access to a Solaris machine, but grep "\-X"
works for me on linux.