Re: [ubuntu-uk] How to delete all .m4a files from music library

2007-10-16 Thread Mac
Matthew Wild wrote: > On 10/16/07, Mac <[EMAIL PROTECTED]> 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

Re: [ubuntu-uk] How to delete all .m4a files from music library

2007-10-16 Thread Matthew Wild
On 10/16/07, Mac <[EMAIL PROTECTED]> 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

Re: [ubuntu-uk] How to delete all .m4a files from music library

2007-10-16 Thread Mac
Tom Bamford wrote: > Try this: > > find /path/to/music -name "*.m4a" -exec rm {} \; Perfect! Cheers, Tom - that's great. Mac -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/

Re: [ubuntu-uk] How to delete all .m4a files from music library

2007-10-16 Thread Tom Bamford
Try this: find /path/to/music -name "*.m4a" -exec rm {} \; Regards, Tom Mac wrote: > I've got a mixture of .flac and .m4a files of the same music scattered > through the multiple sub directories in ~/music. I want to delete all > the .m4a files from which ever subdirectory they happen to be

Re: [ubuntu-uk] How to delete all .m4a files from music library

2007-10-16 Thread Mac
Alec Wright wrote: > On Tue, 2007-10-16 at 18:48 +0100, Mac wrote: >> I've got a mixture of .flac and .m4a files of the same music scattered >> through the multiple sub directories in ~/music. I want to delete all >> the .m4a files from which ever subdirectory they happen to be in, >> leaving t

Re: [ubuntu-uk] How to delete all .m4a files from music library

2007-10-16 Thread Alec Wright
On Tue, 2007-10-16 at 18:48 +0100, Mac wrote: > I've got a mixture of .flac and .m4a files of the same music scattered > through the multiple sub directories in ~/music. I want to delete all > the .m4a files from which ever subdirectory they happen to be in, > leaving the .flac files in their c

[ubuntu-uk] How to delete all .m4a files from music library

2007-10-16 Thread Mac
I've got a mixture of .flac and .m4a files of the same music scattered through the multiple sub directories in ~/music. I want to delete all the .m4a files from which ever subdirectory they happen to be in, leaving the .flac files in their current directories. (It would be nice to delete any