No subject
Sun Sep 23 21:42:57 BST 2007
the default operator is AND. However this line does not print any matches
for me, unless I remove the directory part.
------=_Part_18429_30444726.1192560966232
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<br><br><div><span class="gmail_quote">On 10/16/07, <b class="gmail_sendername">Mac</b> <<a href="mailto:Ammonius.Grammaticus at googlemail.com">Ammonius.Grammaticus at googlemail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
(It would be nice<br>to delete any directories that have become empty because they only had<br>.m4a files in them - but that would be a bonus!)</blockquote><div><br>Going for the bonus!<br><br>find ~/music/ -depth -type d -empty -exec rmdir {} \;
<br><br>Matthew<br><br> PS. can anyone see why this does not work to do it all in one (ignoring the rm)?:<br>find test/ -depth \( -type f -name '*.m4a' \) -o \( -type d -empty \) -exec rm {} \;<br>From what I understand in man find, the brackets are not even needed, since the default operator is AND. However this line does not print any matches for me, unless I remove the directory part.
<br></div></div><br>
------=_Part_18429_30444726.1192560966232--
More information about the ubuntu-uk
mailing list