I've tried a number of suggestions found on the internet and none of them work. Here's one:
...where $x is the pathname of the file passed to the script. I've also tried different paths to Trash - on Desktop, in Home folder, in my user folder, it makes no difference. Either nothing happens, or more often, the file is simply copied to my desktop or userfolder with the name "Trash".
What is the actual path to the Trash folder and how can I move files there? I'm using Ubuntu 10.04.