On 2008-03-06 Preetam Palwe <preetamp aftek.com> 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'
|