On Wed, Nov 25, 2009 at 3:56 AM, Peng Yu <[email protected]> wrote: > I want to search for all '.py' files in a directory (recursively). > However, if there is a '.sh' file in the same directory where a '.py' > is in, the '.sh' file rather than the '.py' file will be returned. > Would somebody let me know how to do so?
Does ... find . -name '*.sh' -o -name '*.py' ... do what you had in mind? James.
