filesystem limits

James R. Van Zandt jrvz at comcast.net
Sun Jan 30 11:33:07 EST 2005


Gregory Boyce <gboyce at badbelly.com> wrote:
>On Tue, 11 Jan 2005, Bill Holt wrote:
>
>> woops...
>> find . -name '*' | xargs rm
>
>I would normally do:
>
>find . -name '*' -exec rm {} \;

Both of these would fail if filenames have spaces.  I suggest

   find . -name '*' -exec rm "{}" \;

	  - Jim Van Zandt



More information about the Discuss mailing list