<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
		<id>https://wiki.fjra.es/wiki/index.php?action=history&amp;feed=atom&amp;title=Recodefilename</id>
		<title>Recodefilename - Historial de revisiones</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fjra.es/wiki/index.php?action=history&amp;feed=atom&amp;title=Recodefilename"/>
		<link rel="alternate" type="text/html" href="https://wiki.fjra.es/wiki/index.php?title=Recodefilename&amp;action=history"/>
		<updated>2026-05-19T07:38:46Z</updated>
		<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://wiki.fjra.es/wiki/index.php?title=Recodefilename&amp;diff=1575&amp;oldid=prev</id>
		<title>FJRA: Página nueva: Siempre hay errores cuando se copia de particiones windows a particiones linux respecto a la codificación de caracteres. Por tanto, aquí hay una solución (aún no recursiva :P), pa...</title>
		<link rel="alternate" type="text/html" href="https://wiki.fjra.es/wiki/index.php?title=Recodefilename&amp;diff=1575&amp;oldid=prev"/>
				<updated>2009-01-23T16:45:11Z</updated>
		
		<summary type="html">&lt;p&gt;Página nueva: Siempre hay errores cuando se copia de particiones windows a particiones linux respecto a la codificación de caracteres. Por tanto, aquí hay una solución (aún no recursiva :P), pa...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Siempre hay errores cuando se copia de particiones windows a particiones linux respecto a la codificación de caracteres. Por tanto, aquí hay una solución (aún no recursiva :P), para solucionar esos errores.&lt;br /&gt;
&lt;br /&gt;
== Uso ==&lt;br /&gt;
&lt;br /&gt;
Para usar el script:&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
$ recodefilename (codificación de origen) (codificación de destino) (archivos)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Para saber la lista de codificaciones disponibles, usar:&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
$ iconv --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Por ejemplo, transformar del iso latino &amp;quot;normal&amp;quot; a utf8 todo el contenido del directorio actual podría usarse:&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
$ recodefilename ISO8859-1 UTF-8 *&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Códifo fuente de recodefilename ==&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Hecho por FJ.&lt;br /&gt;
# Sea GPL!&lt;br /&gt;
#&lt;br /&gt;
# Inspirado en: http://www.usenet-forums.com/linux-general/86205-messed-up-utf8-filenames-ext3-after-some-copy.html&lt;br /&gt;
&lt;br /&gt;
if [ -z &amp;quot;$3&amp;quot; ]; then&lt;br /&gt;
  echo &amp;quot;Uso: $0 &amp;lt;codificacion origen (ISO8859-1)&amp;gt; &amp;lt;codificacion destino (UTF-8) &amp;lt;archivo1&amp;gt; [&amp;lt;archivo2&amp;gt;...]&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
origen=$1&lt;br /&gt;
destino=$2&lt;br /&gt;
&lt;br /&gt;
while [ -n &amp;quot;$3&amp;quot; ]; do&lt;br /&gt;
  nuevonombre=`echo $3|iconv -f $origen -t $destino`&lt;br /&gt;
  if [ &amp;quot;$nuevonombre&amp;quot; != &amp;quot;$3&amp;quot; ]; then&lt;br /&gt;
    mv &amp;quot;$3&amp;quot; &amp;quot;$nuevonombre&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
  shift&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Bash Scripts]]&lt;/div&gt;</summary>
		<author><name>FJRA</name></author>	</entry>

	</feed>