List Info

Thread: finding *.java and *.jsp files




finding *.java and *.jsp files
country flaguser name
India
2008-03-06 07:59:23
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'
 
thanks in advance 
 


Re: finding *.java and *.jsp files
user name
2008-03-06 12:44:49
On Thu, Mar 6, 2008 at 1:59 PM, Preetam Palwe
<preetampaftek.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'

A given directory entry only has one name.   I think you
probably mean
"-or" instead of "-and".

James.



[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )