[ubuntu-uk] How to delete all .m4a files from music library
Matthew Wild
mwild1 at gmail.com
Tue Oct 16 19:56:06 BST 2007
On 10/16/07, Mac <Ammonius.Grammaticus at googlemail.com> wrote:
>
> (It would be nice
> to delete any directories that have become empty because they only had
> .m4a files in them - but that would be a bonus!)
Going for the bonus!
find ~/music/ -depth -type d -empty -exec rmdir {} \;
Matthew
PS. can anyone see why this does not work to do it all in one (ignoring the
rm)?:
find test/ -depth \( -type f -name '*.m4a' \) -o \( -type d -empty \) -exec
rm {} \;
More information about the ubuntu-uk
mailing list