[PLUG] One-liners

Randal L. Schwartz merlyn at stonehenge.com
Thu Jul 30 16:34:02 UTC 2009


>>>>> "Andrew" == Andrew Brookins <a.m.brookins at gmail.com> writes:

Andrew>   find . -empty -maxdepth 1 -exec rm {} \;

Beware.  -empty is a stupid GNUism because the GNU people were
too lazy to type "-size 0".

The *real* find is documented in:

  http://opengroup.org/onlinepubs/007908799/xcu/find.html

"GNU - because, hey, WHO THE F CARES about portability..."

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion




More information about the PLUG mailing list