🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #934

Re: bucle en bash

#934
From: Pascal Bourguignon
Date: Thu, 17 Aug 2006 16:32
26 lines
1868 bytes
icue <no_vale@teleline.es> writes:

> Quiero hacer algo como esto con BASH y no he encontrado un ejemplo.
>
>
> foreach fichero enEsteDirectorio {
>
> micomando  cadaFichero ;
> }


man bash

for fichero in esteDirectorio/* ; do
    micomando $fichero
done


> Quiero a�adir una marca de agua a todas las imagenes de un directorio. 

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

PLEASE NOTE: Some quantum physics theories suggest that when the
consumer is not directly observing this product, it may cease to
exist or will exist only in a vague and undetermined state.
Technical Details
Message-ID: <87d5azl3vl.fsf@thalassa.informatimago.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <ec22aj$p35$1@negre.bartolo>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,3fe53859c8a281d3
X-Google-Attributes: gidf86c8,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!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: bucle en bash
Date: Thu, 17 Aug 2006 18:32:30 +0200
Organization: Informatimago
Lines: 26
Message-ID: <87d5azl3vl.fsf@thalassa.informatimago.com>
References: <ec22aj$p35$1@negre.bartolo>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net UQ5WDzT+mNlezecoQjGnVwvmgCKuayVclAhdAaus8q0karAjWU
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:0/xbLFNY3MTOYji7Vk1JA9tR8ts=