#!/bin/bash ## création lien numéroté de l'image comme fond d'écran # répertoire des fonds repfond=$HOME/images/fonds # plus grand numéro de fichier max=`ls $repfond |sort -n |tail -1` # incrémentation let "max +=1" ln -s "$@" $repfond/$max exit