On 1/30/14, Felix C. Stegerman <f...@obfusk.org> wrote:
> On 2014-01-29 10:43, berenger.mo...@neutralite.org wrote:

>> And then: $ cd ~/bar && rm `find -name '.*'`
>
> Find is indeed very useful, but that's probably a bad idea.  You'll
> get into trouble with filenames containing spaces for example.

> If you really want to use find, use something like:
>
> $ find -depth -name '.?*' -exec echo rm -rv -- {} \;
>
> Which will not match '.' because it expects at least one character
> after the dot, will handle filenames correctly,

Does find do the filename-with-space escaping for us with those
{braces}? (I don't have access to man pages ATM sorry).


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOsGNSRx61s6E7=hu2runm3vxj8wse4yrumq1wpf5ihabe-...@mail.gmail.com

Reply via email to