bug-findutils
[Top][All Lists]
Advanced

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

Re: finding *.java and *.jsp files


From: Andreas Metzler
Subject: Re: finding *.java and *.jsp files
Date: Thu, 6 Mar 2008 19:21:30 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On 2008-03-06 Preetam Palwe <address@hidden> wrote:
> Hello 
>     I want to search my source directory to find all *.java and *.jsp
> files. I am trying following expression but I am not getting the list.
> What could be wrong?
> $ find .  -iname '*.java' -and -iname '*.jsp'

Hello,
You are searching for filenames that match both '*.java' *and*
'*.jsp'. Obviously there are none, a files might match *either*
of the patterns but not both.

find .  -iname '*.java' -or -iname '*.jsp'

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'




reply via email to

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