Lame on multiple mp3 files 2

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Dec 1 17:29:36 EET 2005


On 2005-12-01 12:45, S Papadopoulos <papasv at kapatel.gr> wrote:
>S Papadopoulos wrote:
>> %find . -type d | while read i; do (cd "$i" && for j in *.mp3; do lame
>> -b 160 -h -m j "$j" ;done ) || break;done
>>
>> man find
>> man sed
>> man sort
>> man uniq
>> και μπορει να κάνεις κατι σαν (untested)
>>
>> %find . -name "*.mp3"|sed 's/[\/]+$//'|sort|uniq| while read ...
>
> sed 's/[\/]+$//'
> prepei na einai
> sed 's/[^\/]+$//'

Εναλλακτικά:

    find . -type f -name '*.mp3' | sort | uniq | while ...

ή ακόμα και

    find . \! -type d -name '*.mp3' | sort | uniq | while ...




More information about the Migrate2linux mailing list