From: Fritz Wuehler Subject: Re: shell command for deleting all subdirectories MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit References: <104b5lsg366@dont-email.me> <104b5pvffih@dont-email.me> <104ba9ih1b5@dont-email.me> <104blo6jp9r@dont-email.me> <0d5ojlxe7s.ln2@Telcontar.valinor> <104cjprq66s@dont-email.me> Message-ID: <976fe4c0434b46096bc896f780b8fd69@msgid.frell.theremailer.net> Date: Sun, 06 Jul 2025 23:57:21 +0200 Newsgroups: comp.os.linux.misc Path: csiph.com!news.mixmin.net!news2.arglkargh.de!sewer!news.dizum.net!not-for-mail Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 2001::1/128 Xref: csiph.com comp.os.linux.misc:69443 Lawrence D'Oliveiro <...@nz.invalid> [LD]: LD> LD>> Why not do LD>> rm -r ~/Music/* LD> LD> If any file/dir names in there have spaces or even (shudder) LD> newlines, then word-splitting may not produce the results you LD> expect. The shell has no problem with such names: D=/tmp/test101; mkdir $D && mkdir $D/"a b" $D/"$(printf "a\nc")" && find $D echo deleting everything... rm -fr $D/* && find $D