bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to conditionally search?


From: James Youngman
Subject: Re: How to conditionally search?
Date: Fri, 27 Nov 2009 12:19:47 +0000

On Wed, Nov 25, 2009 at 3:56 AM, Peng Yu <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]