Computing.Net > Forums > Unix > removing files / match criteria

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

removing files / match criteria

Reply to Message Icon

Name: H3001
Date: June 24, 2007 at 04:18:38 Pacific
OS: AIX5.2
CPU/Ram: PowerPC/1024
Product: IBM-44p
Comment:

Hi all,
I'm spendind hours trying to figure out how a script could remove files that are older than 30 days, matching some criteria in their names, in a specific volume and within different user folders. I'm thinking if calling all the user folders with a name starting with "RC-user..", so the removal script could skip the files and folders staring with this naming convention.
Any help is more than welcome !
Cheers,
H.



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: June 25, 2007 at 10:43:55 Pacific
Reply:

Have you considered the find command? It has an -mtime option for finding files greater than "X" number of days.

Check out this miscellaneous find article:

http://www.unixreview.com/documents...

It describes how to ignore directories with find.


0
Reply to Message Icon

Related Posts

See More


Search and replace string... Script to Lock BSC



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: removing files / match criteria

Unix script remove files older 1mon www.computing.net/answers/unix/unix-script-remove-files-older-1mon/5971.html

Remove files command www.computing.net/answers/unix/remove-files-command/7948.html

remove files that has particular st www.computing.net/answers/unix/remove-files-that-has-particular-st/7032.html