DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: delete directories

  1. #1
    Join Date
    Jun 2000
    Posts
    55
    Is there any quick way to delete a whole bunch of subdirectories that are older than a week on a weekly basis?

    Shell script or Perl?

    Qingbo

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Write a shell script that would awk the date and check to make sure that the date that you are looking for and then do rm -rf directory

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width