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
    mv "$i" "`echo $i | sed 's/CADENA//'`"

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.