Eliminar cadenas en nombres de ficheros

Para eliminar una cadena que está presente en un conjunto de ficheros podemos usar este pequeño script:

for i in *.avi
do
    mv "$i" "`echo $i | sed 's/CADENA//'`"
done

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.