Re: [bash] Reading a file and passing it as a value to a script.

From: William Park (opengeometry_at_yahoo.ca)
Date: 06/22/05


Date: Tue, 21 Jun 2005 18:52:02 -0400

Materialised <Materialised@privacy.net> wrote:
> Hi All,
>
> I need some information on how to do the following.
>
> I have a file (images.txt)
>
> the contents are as follws...
>
>
> image1.jpg
> image23.jpg
> image47.jpg
> image100.jpg
>
> .... and so on.
>
> What I hope to do is have a script read this file, and for each entry,
> perform a operation using imagemagick.

while read line; do
    ...
done < images.txt

-- 
William Park <opengeometry@yahoo.ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
	   http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
	  http://freshmeat.net/projects/bashdiff/


Relevant Pages