From: JT on
On 11/01/10 14:01, JT wrote:
> On 11/01/10 13:07, houghi wrote:
>
>> Vahis wrote:
>>
>>
>>> I also needed to convert a couple of hundred files,
>>> in 16 sub directories from ogg to mp3.
>>>
>>>
>> I know the solution has already been done, but just for information. It
>> is also possible to use `basename` to rename files.
>>
>> So what you could do (untested) is to first convert all files from *.ogg
>> to *.ogg.mp3
>> Then you can rename *.ogg.mp3 to *.mp3
>> http://www.debian-administration.org/articles/150
>> Instead of the `ls *.jpg` you use `find . -name "*.mp3"` in the
>> examples.
>>
>> houghi
>>
>>
> Although `ls *.jpg` gives a slightly different result than the mentioned
> `find` command of course... :) But the meaning is clear.
>
> And indeed `find` is not just better for cosmetic reasons (yeah I know,
> matter of taste), but also prevents cmd-line buffers to overflow when a
> lot of files exist.
>
>
BTW: for the gui-adepts - you could try and look into
'Metamorphosis(2)'. I myself prefer the cmd-line for this, but this
little tool looks promising (haven't tried it to a large extent though)

--
Kind regards, JT