Mostly Linux & Python syntax notes and hyperlinks.

Tuesday, January 4, 2011

Linux: to grep for dash, use grep --

For example, to search for python code containing the string "-D":
grep -- -D *.py
From http://stackoverflow.com/questions/2427913/grepping-for-string-containing-dash

No comments:

Post a Comment