Solusan

..:: Solusan – Otro blog más ::..

Pasar muchos archivos de mayíusculas a minúsculas

Por Solusan el 25 de April de 2010 en Linux

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

ソル三。

  • Facebook
  • Twitter
  • Google Buzz
  • E-Mail
  • Google Bookmarks
  • Google Reader
  • Delicious
  • Digg

Añade tu opinión

*

*