-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 2014-01-30 01:51, Zenaan Harkness wrote: > 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).
I tested it with a file named ".foo bar baz", so yes ;-) - - Felix -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBCgAGBQJS6tWUAAoJELIY/ywn/GzG0LMP/AgEkUX4UFzeJVngwA98diLr 1TG8TAFN60StfUro32EZtZEiCvwXxlWQRe5QPwV4MRIzXlfPYsLJ5E2AwxPxbS/C O1kJaVjL4D/7SyHyNdNzdigvichVLGb7xaG9Uq0rGohytTQ+mer7umlfVMo5RRMg dgc/QaoqnTcW79Vl4vo4Ol8xfA9TRm8iTS3N0NPL4wSHE5UDfWvgiH53XgdBOso8 yQ5K4YRksD/AdypW5nWwRzUTc17UAWYRwL83PLjfep6D5e1l5CTPg5LPB94EBIuH 58Kvu43+1A2V72aPM3QPazE0HG36t97+5PLAxo5npk+s8TJRnoYBIvYdFPQ7vVvb 0c5l4SEtIMzXthoHMKYCNBx5juXEOjlmEJjSPgnWfoRpTJ/VdzGaf+IDeKoC/8Y0 WiFGX0ucx5/8NI2J+i7eJa1CpWJ3k7+ILcjpd7D8syQRY0A6Llp0+YssP3/wL3Yb h9kgRcU/q2VAyjmB2/+uzH0cquss4y4UhjM2rwwpxEa46lg3Vd7vQi19xpHSqdTT kL7Yhu3y2jY0g6IkDexoF0Q0YbDb3mK7Io8Sl4jzpxcJ3D3FEps7u6GtZM1ZMgaZ j02P6GdfoVXrr4h+d5PytKDUNYFrTuEAW68jo5z7Xp0c1ZXtQiLCXmYZ2puc9J6u wOFHGcnWBhMLt83VfAu+ =wlLC -----END PGP SIGNATURE----- -- 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/52ead59c.6060...@obfusk.org