Atenção usuários de email com anti-spam (Uol e Bol).
#!/bin/bash## Adicionar wallpapers# Desenvolvida por Cristiano# 05/02/2009#dirWallpaper="/usr/share/backgrounds/"wallXML="/usr/share/gnome-background-properties/ubuntu-wallpapers.xml"baseName=`basename $wallXML`dirName=`dirname $wallXML`# Backup do arquivodialog --title "" --infobox "Adicionando Wallpapers...." 5 45cp $wallXML $wallXML.bkp.`date +'%Y-%m-%d_%Hh%Mm'`cat $wallXML | grep -v "</wallpapers>" > /tmp/$baseNamefor wallPaper in wall/*;do nomeFile=`basename $wallPaper` nomeWall=`echo $nomeFile | cut -f1 -d"."` cp $wallPaper $dirWallpaper echo " <wallpaper>" >> /tmp/$baseName echo " <name>$nomeWall</name>" >> /tmp/$baseName echo " <filename>$dirWallpaper/$nomeFile</filename>" >> /tmp/$baseName echo " <options>zoom</options>" >> /tmp/$baseName echo " <pcolor>#dab082</pcolor>" >> /tmp/$baseName echo " <scolor>#dab082</scolor>" >> /tmp/$baseName echo " <shade_type>solid</shade_type>" >> /tmp/$baseName echo " </wallpaper>" >> /tmp/$baseNamedoneecho "</wallpapers>" >> /tmp/$baseNamecp /tmp/$baseName $dirName