Re:Python command line oneliners
by pgorla on Wednesday February 20, 2013 @07:53AM
(#5250132)
Also, the last line to check for 'one-liners' won't get them all:
Should be:
[ Parent
| on HN ]
If you're not storing that somewhere, but rather typing it, I find you're often better off by being a little more forgiving, eg:
$ grep -r "if __name__ == .__main__." /path/to/lib
or even:
$ grep -Er 'if\W__name__\W==\W.__main__.'