Pratique pour l'écriture de script en bash lorsqu'on a besoin d'un fichier temporaire :
tmpfile=$(mktemp)
if [ -e "$tmpfile" ] then rm -f $tmpfile fi