Le mar 30 nov 2004 à 18:44:33 +0100, S�bastien Hinderer a tapoté sur son 
clavier :
> > for i in *.wav.mp3; do mv $i ${i%%\.wav.mp3}.mp3; done
> 
> for i in *.wav.mp3; do mv $i `basename $i .wav.mp3`.mp3; done

Allez, pour la route:

for i in *.wav.mp3; do mv "$i" "${i/%.wav.mp3/.mp3}" ; done

Les " c'est pour le cas o� les fichiers ont des espaces. Sous bash, le
"for" ne marche d�j� pas avec les espaces. Mais sous zsh �a marche.

++ 
Samuel
_______________________________________________
Liste de diffusion CarrefourBLinuX 
    [EMAIL PROTECTED]
    http://lists.freearchive.org/mailman/listinfo/carrefourblinux
Signets : http://fr.groups.yahoo.com/group/carrefourblinux/links/
Archives : http://lists.freearchive.org/pipermail//carrefourblinux
Anciennes archives (Yahoogroupes) :
    http://fr.groups.yahoo.com/group/carrefourblinux/messages
Pour s'inscire par courriel : 
    'mailto:[EMAIL PROTECTED]'
Pour se desinscrire par courriel : 
    'mailto:[EMAIL PROTECTED]'

Répondre à