1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
ORA=$ORACLE_HOME j=0 for i in `find /$ORA/admin/adump -type f -name "*_$j.aud" -mtime +31` do # Echo the find results to make sure it finds the correct files before you enable the rest. echo $i #tar -rvf file.tar $i #rm $i done