Linux>Script
.
             poubelle.sh

<-- LINUX

#!/bin/bash
# Ce script deplace le fichier saisie en argument a la poubelle

#!/bin/bash
if [ -f "$1" ]
then
  read -p "mettre à la poubelle (o/N) ?" reponse
  if [ "$reponse" = "o" ]
  then
    mv $1 /home/$USER/.local/share/Trash/files/
    echo $1
    echo "mis à la poubelle"
  else
    echo "annulé"
  fi
else
  echo "le fichier n'existe pas"
fi

<-- LINUX