[Top][All Lists]
[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.
- How to conditionally search?, Peng Yu, 2009/11/27
- Re: How to conditionally search?,
James Youngman <=
- Re: How to conditionally search?, Peng Yu, 2009/11/27
- Re: How to conditionally search?, Eric Blake, 2009/11/27
- Re: How to conditionally search?, Peng Yu, 2009/11/27
- Re: How to conditionally search?, James Youngman, 2009/11/28
- Re: How to conditionally search?, Peng Yu, 2009/11/28
- Re: How to conditionally search?, Eric Blake, 2009/11/28