Advertisement
Advertisement
| 03.26.2008 at 12:18PM PDT, ID: 23271756 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: |
#!/bin/csh #Path of the folder from which the files are to be deleted $xml_file_dir="/opt/sit/aesdm/hbsemployer/logs"; #180 days is given to delete the files which are more than 6 months older #Here files with ".xml" extensions are only deleted find $xml_file_dir -name "*.xml" -mtime +180 | xargs rm -f; |