[Smaug] Get off my lawn . . . in Unix

Larry Cafiero larry.cafiero at gmail.com
Sun Jun 7 22:25:12 PDT 2009


[Sorry, folks, but I'm a sucker for stuff like this, if you remember the
"Santa Claus Is Coming to Town" in Unix commands. Here's how to get kids off
your lawn. It was on /. as part of the responses to the 40th anniversary of
Unix story here (which Bob Lewis may have already submitted):
http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=9133570--Larry
Cafiero]

find my_lawn -name kids\* -exec rm -f {} \;

However -exec is slow. Try:

find my_lawn -name kids\* | xargs rm -rvf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.svlug.org/archives/smaug/attachments/20090607/dcba3022/attachment.htm


More information about the Smaug mailing list