5 for i in $(cat foo.2); do
6 if [ -f $i -a ! -L $i ]; then
9 size=$(du -b $i | cut -f 1)
10 arch=$(echo $i | sed -e "s#.*binary-\([a-z]*\).*#\1#")
11 pushd $dir > /dev/null
12 destdir=/home/troup/removed-from-ftp/badmd5-$arch/
13 if [ ! -d $destdir ]; then mkdir $destdir; fi
14 mv -iv $file $destdir/
15 ln -s ../../../../potato/$(echo $i | sed -e "s#.*woody/##") .
17 total=$(expr $total + $size)
22 echo "Replaced $total bytes."