Moin,
I think you have no chance to do it in a single
find in AIX, but you can combine a
find with a
grep:
Code:
find $purge_dir_path -type f -mtime +100 -print | grep -vE "^$purge_dir_path/.+/" | xargs rm
The
grep filters out all pathnames containing a subdirectory part below
$purge_dir_path.
Jan