Article View: es.comp.os.linux.programacion
Article #1061Re: Nombres de archivos con espacios
From: Pascal Bourguignon
Date: Sun, 30 Apr 2006 13:19
Date: Sun, 30 Apr 2006 13:19
40 lines
2226 bytes
2226 bytes
Cachorro <caxorrin@gmail.com> writes:
> Hola buenas a todos:
> Haciendo un script que procesa jpgs me surgi� este problema. Los jpg tienen
> espacios en blanco y el script interpreta que cada bloque de texto entre
> espacios como si fuerra un jpg.
>
> Como puedo arreglarlo ?
man bash
es decir, si usas bash; no dices que shell usas...
#!/bin/bash
> for i in $(ls *.jpg)
for in in *.jpg
> do
> echo "Procesando => $i"
> #convert....
convert "$i" "${i}.convertido"
> #jpgtn....
jpgtn "${i}.convertido" "${i}.salida"
> done
--
__Pascal Bourguignon__ http://www.informatimago.com/
"Remember, Information is not knowledge; Knowledge is not Wisdom;
Wisdom is not truth; Truth is not beauty; Beauty is not love;
Love is not music; Music is the best." -- Frank Zappa
Technical Details
Message-ID:
<873bfv5hgg.fsf@thalassa.informatimago.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<e32al0$i6v$1@cagarruta.escomposlinux.org>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,9eefb479bd911f57
X-Google-Attributes: gidf86c8,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Pascal Bourguignon <pjb@informatimago.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Nombres de archivos con espacios
Date: Sun, 30 Apr 2006 15:19:27 +0200
Organization: Informatimago
Lines: 40
Message-ID: <873bfv5hgg.fsf@thalassa.informatimago.com>
References: <e32al0$i6v$1@cagarruta.escomposlinux.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net iOP+svAZU4FvxfUy2ETYugAEpLABSZlE9EQUGKpy/MX2dc5LSf
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language: fr, es, en
X-Disabled: X-No-Archive: no
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)
Cancel-Lock: sha1:SxZ4meClLwJUNzQRfrYzDVctPPY=