How to find files in a pattern directory?

Hi,

I have more than 1000 directories under one directory (lets says under /home/).
Sub directories are like A1 to A100,B1 to B100 etc..

Here my problem is I need to find the files older than 10 days in the directories which starts with A*.

I tried some thing like this which is not working.

find . \( -type d -name "A*" -type f -name "*.*" -mtime +10 \)

Please help me with correct command.

Thanks
Shri

[mod]Use code tags, please - see PM.[/code]

Well you are trying it in a wrong way. You have mixed two criteria into one. First, you need to list down the directories with name starting with A. Then you need to find out the files on each of these directories.

Here you go:

find . -maxdepth 1 -type d -name "A*" -print | while read dir; do find $dir -type f -mtime +10 >>/tmp/report; done

The list of files according to your criteria gets stored in a file called report in /tmp directory.

Nothing AIX particular - moving thread.