Naive scripting question (for Nautilus)
This is only the second script I have ever wrote. Basically I want to be able to send the contents of a directory to trash using the Nautilus scripting facility - Note I want to retain the original directory.
# Send contents to trash
(mv $(ls) /home/myself/.Trash)
Result is that EVERYTHING in my /home/myself gets to go to Trash.
I understood that $1 argument pertained to the selected file/directory.