You can also exclude from the find command I believe, so for example, to find 
all files that are dot files, but leave .htaccess files alone, not that this 
would be anywhere near a safe idea, but it shows the process:

find . -type f \( -iname ".*" ! -iname ".htaccess" \)

-- 
Scott * If you contact me off list replace talklists@ with scott@ * 

On Jan 11, 2010, at 4:22 PM, Bradley Giesbrecht wrote:

> True, it's not MacPorts' fault. Nor is it my fault. It's not practical to 
> safely avoid .mp for the beginnings of all things. Users can create imap mail 
> boxes and name them what they like.
> 
> I just want to safely remove a slug of files that MacPorts put on my system 
> and then forgot about. Those files are there because at times it's been the 
> only way to get things installed/upgraded using MacPorts. I'm happy that 
> MacPorts didn't just clobber them but at some point I think I want these 
> removed from places like $prefix/bin/*.mp*. I'm just looking for an easy and 
> safe way to do this and find -name *.mp* rm scares me. It's easy but not safe.

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to