dir=fedora #{the name of the folder} size=121 #{the number of images} duartion=120.0 #{the duration of the wallpaper in secounds} transition=5.0 #{the duration of the transition in secounds} count=1 count2=2 echo " 2009 08 04 00 00 00 ">$dir.xml while [ $count -le $size ] do echo " $duartion /usr/share/backgrounds/$dir/$count.jpg $transition /usr/share/backgrounds/$dir/$count.jpg /usr/share/backgrounds/$dir/$count2.jpg " >> $dir.xml let count=count+1 let count2=count2+1 done echo "">>$dir.xml