The Core

Why We Are Here => Web Development => Topic started by: ergophobe on May 08, 2012, 06:37:50 PM

Title: unix "find" command builder - handy tool
Post by: ergophobe on May 08, 2012, 06:37:50 PM
http://find.unixpin.com/

I don't use find often enough to really be able to have it down - so powerful, but I always end up having to look up the precise syntax. This is a fill in the blank tool that lets you build almost any find command, including piping to other commands with -exec. Pretty handy
Title: Re: unix "find" command builder - handy tool
Post by: littleman on May 08, 2012, 07:23:21 PM
That is nice.  I was just searching through the 'MAN' page for find yesterday looking for some old work I did.
Title: Re: unix "find" command builder - handy tool
Post by: ergophobe on May 08, 2012, 08:23:34 PM
Hmm... doesn't have the -empty flag. I was just pruning all empty directories below my pwd

find . -type d -empty -exec rmdir {} \;  -print

the builder I linked to doesn't have an -empty flag or I couldn't find it.