Very new in Unix and i got a requirement like writing a script and schedule it, so that it removes 30 days old files from all the log locations of a unix box.
Suppose i have a unix server ltbamdev1 and in this server i have a mount point opt/bam. In this mount point i have 3 different folders like
Please help me in writing a script which runs once a week and removes all 30 days old files from these three folder locations.
Thanks in advance
The discussion is in the duplicate cross-post: To create a script and schedule which purge 30 days old files
For the future, only make one post.
If it is in the wrong forum, it will likely get relocated by moderators.
This duplicate is now locked to prevent responses getting fragmented all over the place.