Dear Friends!
i am wirking on the IBM AIX version 5.3. and i wrote a script to delete the files whicha re generated on 10 days before to the present day. but iam not able to delete the files with the below script so please check and correct me.
[code]
dt=`TZ=aaa480 date +%d`
mt=`TZ=aaa480 date +%b`
rm -f `ls -ll | awk '$7 == '$dt' && $6 == '$mt''| awk '{print $9}'`
[code]
files in the directory are displayed as below.
[example]
-rw-r----- 1 smp tellin 1492 Nov 17 10:06 sms_oplog_smpsys_1266_20091117.log
-rw-r----- 1 smp tellin 1752 Nov 17 11:24 sms_oplog_smpmml_internal_20091117.log
[Example]