public inbox for gentoo-user-br@lists.gentoo.org
 help / color / mirror / Atom feed
From: Fernando Boaglio <boaglio@gmail.com>
To: gentoo-user-br@lists.gentoo.org
Subject: [gentoo-user-br] renomear arquivos com caracteres inválidos
Date: Mon, 22 Feb 2010 19:19:07 -0300	[thread overview]
Message-ID: <ab2953b01002221419y3d8da881xd864e8fd437db127@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 693 bytes --]

Gente,

Já procurei por alguns scripts na net sem muito sucesso, eu tenho alguns
arquivos com caracteres inválidos, por exemplo:

*Nenhum_de_N?s_-_Acervo_Especial_-__01__-_O_Astronauta_de_M?rmore_.mp3*

Eu tentei rodar um script assim:

* find . -print | while read file
 do
 file_clean=${file//[ ()&\'\,]/_}
   mv "$file" "$file_clean"
 done*

Nesse caso ele não consegue renomear:

*mv:
"./Nenhum_de_N\363s_-_Acervo_Especial_-__01__-_O_Astronauta_de_M\341rmore_.mp3"
e
"./Nenhum_de_N\363s_-_Acervo_Especial_-__01__-_O_Astronauta_de_M\341rmore_.mp3"
são o mesmo arquivo*


 Existe algum script que retire esses caracteres \363 e \341 ?

-- 
[]'s
Fernando Boaglio

[-- Attachment #2: Type: text/html, Size: 829 bytes --]

             reply	other threads:[~2010-02-22 22:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-22 22:19 Fernando Boaglio [this message]
2010-02-22 22:25 ` [gentoo-user-br] renomear arquivos com caracteres inválidos Pablo Hess
2010-02-23  0:22   ` Fernando Boaglio
2010-02-23  1:45 ` Fabiano - deStilaDo
2010-02-23  1:53   ` Fernando Boaglio
2010-02-23 13:12     ` Pablo Hess
2010-02-23 17:30       ` Res: " Raphael MD
2010-02-24 12:28         ` João Matos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab2953b01002221419y3d8da881xd864e8fd437db127@mail.gmail.com \
    --to=boaglio@gmail.com \
    --cc=gentoo-user-br@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox