LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: OT: pipe to rm?

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: OT: pipe to rm?
From: Scott Laird <laird@xxxxxxxxxxxx>
Date: Wed, 19 Sep 2001 11:11:45 -0700 (PDT)
On Wed, 19 Sep 2001, S Fox wrote:
>
> find . -name *.eml|xargs -r rm -v  >> rm.log

That'll have problems with file or directory names with spaces.  GNU find
and xargs have a workaround, though.  Use this instead:

  find . -name '*.eml' -print0 | xargs -0 rm -v >> rm.log


Scott



<Prev in Thread] Current Thread [Next in Thread>