|
|
Or use a more appropriate tool for the job.
Yes, but find is not restricted to only removing whole root level directories. That was my first solution, though.
Or use a more appropriate tool for the job.
Not sure *entirely* what you mean, but look in your find manpage for -maxdepth and -type. It may not be called -maxdepth in Tiger's 'find' (one of the bad things about 'standard' command-line utils is that they differ across platforms.) It may be necessary to do this in a couple of lines, which would mean a shellscript, but that's certainly OK.
Or use a more appropriate tool for the job.
Any chance you could post the script? I have been tinkering with something like this for a while but to no avail (no shell scripting experience).
Or use a more appropriate tool for the job.
I use the following command to clean out old home folders on multi-user workstations: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|