[Gllug] bash string confusion
t.clarke
tim at seacon.co.uk
Wed Jul 6 15:42:53 UTC 2005
I am absolutely no expert at writing scripts, but you could try another
clumsier approach and see what happens, along the lines of:
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
The above is in Unix 'sh' style - hope it works the same with bash
Also, I hope tghere are no typos
Tim
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list