How to come out of this

Hi,

i have to search for all files named FILE in my particular directory, which is /abc.

when i am using 'find /abc -newer file2 -print | xargs ls -ld | grep 'FILE'

this gives me all the files but the problem is, it takes all the files which comes under /abc/def also and all other diirectory for the same file name FILE.

i want to restrict my search to this particular directory, and i need all FILE under only /abc, not /abc/def

can someone please guide me on this.

have a look at the '-prune' option in the find man page

it works , :slight_smile:

thanks so much