Re: Help with command - cp
On 1/30/14, Felix C. Stegerman <flx@obfusk.org> wrote:
> On 2014-01-29 10:43, berenger.morel@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).
Reply to: