[kubuntu] Bash script to move file to the trash

view story

http://ubuntuforums.org – I'm trying to create a Bash script which will move files to the trash, basically something that does the same thing as "kioclient move file1 file2 file3 trash:/" but more easily. This is the script so far: Code: #!/bin/bash IFS=" " # is this really needed? # make sure a file to throw away is specified if [ "$1" = "" ]; then   echo -e "trash: missing operand\nTry 'trash --help' for more information"   exit 1 fi # if --help is passed on to the script, display the help if [ "$1" = "-h" -o &quo (Hardware)