Pasar muchos archivos de mayíusculas a minúsculas

By 25 de abril de 2010 Linux No Comments

Pequeño tip para pasar multitud de archivos a minúsculas.
En mi caso fueron 11540 sin problemas.

#!/bin/sh
# Do the directories first, so that the
# path doesn't change
for each in `find . -type d`
do
newname=`echo $each | tr [A-Z] [a-z]`
mv $each $newname
done
# Now to the files...
for eachf in `find . -type f`
do
newnamef=`echo $eachf | tr [A-Z] [a-z]`
mv $eachf $newnamef
done

ソル三。


Warning: DOMDocument::loadHTML() [domdocument.loadhtml]: Unexpected end tag : div in Entity, line: 1 in /home/solusan/public_html/wp-content/plugins/twitter-avatar-reloaded/twitter-avatar-reloaded.php on line 197

Leave a Reply

Your email address will not be published.