[Gllug] Re: bash string confusion

Craig Millar gllug at craigmillar.org
Wed Jul 6 16:12:55 UTC 2005


On 06/07/05 16:42 +0100, t.clarke wrote:
> cd IMAGEDIR
> ls  'file-containing-the-list'  |   script
> 
> 
> where script is an executable script-file something like:
> 
> while read FILE;
> do
> if [ ! -e $FILE.jpg ]
> then
> echo "$FILE" >> listing-file
> fi
> done

problem solved but i did try this in a test directory which is similar but
much smaller to the images dir. it returns only the string
file-containing-the-list in listing-file

thanks, craig
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list