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
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
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/
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
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
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
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