Advertisement
LACabeza

convmv_nautilus.sh

Jan 14th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # convmv_nautilus: http://pastebin.com/Ybn63QBN
  3. #
  4. # Autor: Alysson Gonçalves - agalysson@gmail.com
  5. #   Ref: Valter Ferraz Sanches - Renomeando arquivos "Codificação Inválida" e um Bônus.
  6. #          http://www.vivaolinux.com.br/dica/Renomeando-arquivos-Codificacao-Invalida-e-um-Bonus
  7. #        Wellington R. Braga - Estendendo o poder de trabalho do Nautilus
  8. #          http://blog.welrbraga.eti.br/?p=440
  9. #
  10. # Para funcionar, salve este arquivo com um nome qualquer no diretório:
  11. #   "~/.gnome2/nautilus-scripts/"
  12. # O nome que colocar no arquivo será Exibido no menu de contexto do Nautilus.
  13.  
  14. OLDIFS=${IFS}
  15. IFS="
  16. "
  17. for arquivo in ${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}; do
  18.    convmv -r -f cp850 -t utf8 --notest $arquivo
  19. done
  20. IFS=${OLDIFS}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement