2 find . -name "*.gif" | while read giffile
4 pngfile=`echo $giffile | sed 's/gif$/png/'`
7 echo "There is already a png file for $giffile"
8 echo "Please check what to do"
9 #display $giffile $pngfile
14 find . -name "*.gif" | while read gifagain
16 bname=`basename $gifagain`
17 gbname=`basename $gifagain|sed 's/\./\\\\./g'`
19 cnt=`grep -lr "$gbname" . | grep -v "/CVS/" | wc -l | xargs echo`
21 #grep -lr $bname . | grep -v "/CVS/"
25 echo "===== $gifagain is used as $bname in ====="
26 grep -lr $gbname . | grep -v "/CVS/"
27 echo "=========================================="
32 echo "Ready to go ? Enter to go or ctrl-c to abort"
34 find . -name "*.gif" | while read giffile
36 pngfile=`echo $giffile | sed 's/gif$/png/'`
39 cvs delete -f $giffile