This script empties the Trash of any file except .deb files?
It is used in a crontab job to empty the trash every 15 minutes.
Anyone know why?
#!/bin/bash
find /home/andy/.local/share/Trash/expunged/ -type f -exec rm {} \;
find /home/andy/.local/share/Trash/files/ -type f -exec rm {} \;
find /home/andy/.local/share/Trash/info/ -type f -exec rm {} \;
find /media/andy/MAXTOR_SDB2/.Trash-1000/files/ -type f -exec rm {} \;
It is used in a crontab job to empty the trash every 15 minutes.
Anyone know why?
#!/bin/bash
find /home/andy/.local/share/Trash/expunged/ -type f -exec rm {} \;
find /home/andy/.local/share/Trash/files/ -type f -exec rm {} \;
find /home/andy/.local/share/Trash/info/ -type f -exec rm {} \;
find /media/andy/MAXTOR_SDB2/.Trash-1000/files/ -type f -exec rm {} \;