Joined: 22 Feb 2008 Posts: 357 Location: Hood Canal, WA
Posted: Mon 10 Jan 2011, 21:13 Post subject:
Putting a symlink to your "Trash" script in ~/.config/rox.sourceforge.net/OpenWith will result in the Trash item showing up in the Open With... item whenever you right click in Rox-filer. You can instead make the Trash script show up at the top of the main Rox-filer right click menu by selecting the Customize Menu... from the Rox-filer menu that pops up when an item is right clicked. The SendTo directory that pops up is symlinked to the OpenWith directory. Create a symlink in this way for each type of file you want to be able to move to the trash bin. See the rox manual in Puppy for more information.
if you entered a directory as input change to that directory
for all files/directories in the current directory do
set up a variable to compare to x try to replace space with underscore using sed
if the variables don't match then must have had a spaces so rename (move) that file to the string with underscores
if the current y or x is a directory run this script in that directory too (this is recursion)
$0 refers to the script itself so you can call it recursively as above regardless if it is in $PATH or what it is named ... you can make a self destructing script like:
rm -f $0 _________________ Check out my github repositories. I may eventually get around to updating my blogspot.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum