#!/bin/sh
#file=../../templates/index/work.html
file=../../templates/index/sidebar_work.html
if [ ! -f $file ]; then
echo "not found::"
echo $file
exit
fi
urls=`grep "img src" $file | grep "img/bt/" | awk -F'src=\"' '/src=/{for (i=2;i<=NF;++i){split($i,s,"\"");print s[1]}}' $1 | sed "s/\.\.\//http:\/\/www.bodiak.com\//"`
for url in $urls; do
#echo $url
#wget $url
b=`basename $url .gif`
d=`dirname $url`
#echo $d/${b}02.gif
wget $d/${b}02.gif
done