From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NjgdI-0001NI-M2 for garchives@archives.gentoo.org; Mon, 22 Feb 2010 22:20:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 121CEE0E2B; Mon, 22 Feb 2010 22:19:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C92FAE0E2B for ; Mon, 22 Feb 2010 22:19:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 6ECE61B4349 for ; Mon, 22 Feb 2010 22:19:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -1.669 X-Spam-Level: X-Spam-Status: No, score=-1.669 required=5.5 tests=[AWL=0.929, BAYES_00=-2.599, HTML_MESSAGE=0.001] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eK0gdnUSP+c1 for ; Mon, 22 Feb 2010 22:19:35 +0000 (UTC) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.211.178]) by smtp.gentoo.org (Postfix) with ESMTP id BCD671B411C for ; Mon, 22 Feb 2010 22:19:31 +0000 (UTC) Received: by ywh8 with SMTP id 8so1408393ywh.6 for ; Mon, 22 Feb 2010 14:19:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=brYS/biBhFVyJEVcxWaLenwwnokaC2rZ+TerwhTKejo=; b=R4I/B4SdRVN2f4GJ4Bfnkz3od06bdlGH/cVgFTSAiTJkhR6IeTPXrhMzVyiu/EbNTs Ua9PPBpWiYygYv2Z4i5VTV5Gl7dl5PMUM8ilZxbrulIoSlM08JzpjFkkvV1rdzgPa07i NzZs94RjvWLScYrU+lbw8pY/FncfbOAQgzXhQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=ZAM3sta4H8Ui9I+4FETVZdlPQZ7yqWnz25pKMRH9S/bt9EIUziolg53kN0GpDSrpCZ H1vf0EuH5Ch23mwRRws/R7ARryx0clUsxfqhgBsDe0xdQxPKwuSSn2GB73fXCfxsXW5j rEtZUQQFA9a/GGAkYLFANM1ah65V0sVouwod0= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user-br@lists.gentoo.org Reply-to: gentoo-user-br@lists.gentoo.org MIME-Version: 1.0 Received: by 10.150.251.6 with SMTP id y6mr891230ybh.297.1266877167301; Mon, 22 Feb 2010 14:19:27 -0800 (PST) From: Fernando Boaglio Date: Mon, 22 Feb 2010 19:19:07 -0300 Message-ID: Subject: [gentoo-user-br] =?ISO-8859-1?Q?renomear_arquivos_com_caracteres_inv=E1lidos?= To: gentoo-user-br@lists.gentoo.org Content-Type: multipart/alternative; boundary=000e0cd70e2087f696048037d30d X-Archives-Salt: fbff3769-5956-45d7-bc7b-ae9e37ac9887 X-Archives-Hash: 1626fc9575077316c5f5480c173b73a8 --000e0cd70e2087f696048037d30d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Gente, J=E1 procurei por alguns scripts na net sem muito sucesso, eu tenho alguns arquivos com caracteres inv=E1lidos, 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=3D${file//[ ()&\'\,]/_} mv "$file" "$file_clean" done* Nesse caso ele n=E3o 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=E3o o mesmo arquivo* Existe algum script que retire esses caracteres \363 e \341 ? --=20 []'s Fernando Boaglio --000e0cd70e2087f696048037d30d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Gente,

J=E1 procurei por alguns scripts na net sem muito sucesso, eu= tenho alguns arquivos com caracteres inv=E1lidos, por exemplo:

N= enhum_de_N?s_-_Acervo_Especial_-__01__-_O_Astronauta_de_M?rmore_.mp3
Eu tentei rodar um script assim:

=A0find . -print | while rea= d file
=A0do
=A0file_clean=3D${file//[ ()&\'\,]/_}
=A0=A0 = mv "$file" "$file_clean"
=A0done


Nesse ca= so ele n=E3o consegue renomear:

mv: "./Nenhum_de_N\363s_-_Acervo_Especial_-__01__-_O_Astronauta= _de_M\341rmore_.mp3" e "./Nenhum_de_N\363s_-_Acervo_Especial_-__0= 1__-_O_Astronauta_de_M\341rmore_.mp3" s=E3o o mesmo arquivo


=A0Existe algum script que retire esses caracteres \363 e \341 ?

--
[]'s
Fernando Boaglio
--000e0cd70e2087f696048037d30d--