Acesse aqui!!!!
Obs.: É só rodar e esperar o resultado do trabalho, Claro que existem alguns parâmetros neste Script que podem (devem) ser modificados, para isso basta estudar o código e modificar de acordo com as suas necessidades.
Não se esqueça de compartilhar suas melhorias, pois a comunidade GNU/Linux vai agradecer muito a sua colaboração.
#!/bin/bash
#virmal_divx 2011
(
echo “# Estamos trabalhando, por favor aguarde o processo terminar !!!”
rename ‘y/A-Z/a-z/’ *
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘s/ /_/g’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-X-W-Y-Z/a-b-c-d-e-f-g-h-i-j-k-l-m-n-o-p-q-r-s-t-u-v-x-w-y-z/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Á/a/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/É/e/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Í/i/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ó/o/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ú/u/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/á/a/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/é/e/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/í/i/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ó/o/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ú/u/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ç/c/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ã/a/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ĩ/i/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Õ/o/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ũ/o/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ü/u/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Â/a/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ê/e/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ẽ/e/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Î/i/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Ô/o/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/Û/u/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ç/c/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ã/a/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ẽ/e/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ĩ/i/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/õ/o/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ũ/u/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ü/u/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/â/a/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ê/e/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/î/i/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ô/o/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/û/u/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/(/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/)/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/[/_/'`";done
find | while read FN;do mv "$FN" "`echo $FN | sed -r -e 'y/]/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/ª/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/º/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/°/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/________/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/_______/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/______/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/_____/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/____/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/___/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/__/_/’`”;done
find | while read FN;do mv “$FN” “`echo $FN | sed -r -e ‘y/_-_/_/’`”;done
##### Converte as imagens para o formato jpg em 1024×768
for i in `ls *.jpg` ; do convert -scale 1024×768 -normalize +contrast $i 1024x768_$i && rm -Rf $i; done
# for i in *.jpg; do convert -scale 1024×768 -normalize +contrast $i ${i%.jpg}.jpg && rm -Rf $i; done
for i in `ls *.jpeg` ; do convert -scale 1024×768 -normalize +contrast $i 1024x768_$i.jpg && rm -Rf $i; done
# for i in *.jpeg; do convert -scale 1024×768 -normalize +contrast $i ${i%.jpeg}.jpg && rm -Rf $i; done
for i in `ls *.png` ; do convert -scale 1024×768 -normalize +contrast $i 1024x768_$i.jpg && rm -Rf $i; done
# for i in *.png; do convert -scale 1024×768 -normalize +contrast $i ${i%.png}.jpg && rm -Rf $i; done
for i in `ls *.bmp` ; do convert -scale 1024×768 -normalize +contrast $i 1024x768_$i.jpg && rm -Rf $i; done
# for i in *.bmp; do convert -scale 1024×768 -normalize +contrast $i ${i%.bmp}.jpg && rm -Rf $i; done
for i in `ls *.tif` ; do convert -scale 1024×768 -normalize +contrast $i 1024x768_$i.jpg && rm -Rf $i; done
# for i in *.tif; do convert -scale 1024×768 -normalize +contrast $i ${i%.tif}.jpg && rm -Rf $i; done
echo “# Trabalho terminado !!! Bom trabalho!!!!”
) | zenity –progress –width 200 –height 100 –title “Informação do Sistema” –text “Informação do Sistema” –pulsate –auto-close
0sem comentários ainda
Por favor digite as duas palavras abaixo