Let's say I want to search a file for a string that begins with a dash, say
grep "-something" filename.txt
This throws an error, however, because
grep and other executables, as well as built-ins, all want to treat this as a command-line switch that they don't recognize. Is there a way to prevent this from happening?