How to Write grep in Emacs Lisp (tutorial)

Harald Hanche-Olsen hanche at math.ntnu.no
Wed Feb 9 11:07:33 EST 2011


[Icarus Sparry <i.sparry+un at gmail.com>]

> The 'modern' way to do this is
> find . -maxdepth 2 -name '*.html' -exec grep whatever {} +

Actually, I think it should be

find . -maxdepth 2 -name '*.html' -exec grep whatever /dev/null {} +

because grep behaves differently when given only one filename as opposed
to several.

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell



More information about the Python-list mailing list