[Gllug] Re: bash string confusion

Craig Millar gllug at craigmillar.org
Wed Jul 6 15:53:33 UTC 2005


On 06/07/05 16:46 +0100, Russell Howe wrote:
> If you're OK with it being bash-only, you can do this:
> 
> for item in $(< photo.txt); do
> 	[ -f "$IMAGEDIR/$item.jpg" ] || echo "$i" >> unillustrated.txt
> done
 
that's really nifty

> Try dos2unix on the file. Maybe it has DOS line endings?

thanks Russell - my colleague and i worked that out eventually, these things are sent
to try us!
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list