[X-Unix] "find" command question...

Eugene list-themacintoshguy at fsck.net
Tue Dec 21 11:30:21 PST 2004


On Tue, Dec 21, 2004 at 12:43:22PM -0500, lists3-200402 wrote:
: 
: how do i take this command:
: 
: 	rm -rf /Library/Fonts/*
: 
: ...and have it ONLY delete stuff in the directory that DOES NOT begin 
: with "MS"?

I'd rather delete stuff that DOES begin with MS.  :-)

Otherwise, this works in /bin/bash:

	$ find /Library/Fonts -type f \! -name "MS*" -print0 | xargs -0 rm


-- 
Eugene
http://www.coxar.pwp.blueyonder.co.uk/


More information about the X-Unix mailing list