Hi everyone. I’m dabbling with making a Google Chrome extension to clear flash cookies. I think i need some scripting help. How would i go about making a small script to delete the entire contents from a specific folder?
Contents of the script would be (you put in the correct path):
#!/bin/bash
rm -f /home/username/.somedirectory/*
Save the above under some filename, I will use ‘cookiewipe’ here. Then do
chmod +x cookiewipe
and you have an executable script deleting the contents of a hidden directory in your $HOME account whenever it is executed. When you need recursive deletion (wiping subdirectories as well) please look up the manual of ‘rm’ for one additional argument.
man rm
Is it this you want?
vodoo wrote:
> When you need recursive deletion (wiping subdirectories as well)
> please look up the manual of ‘rm’ for one additional argument.
i like the way you did that (because it removes one chance for
disaster and gives a chance for the reader to “open the book”
good job!
–
DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
When it comes to chocolate, resistance is futile.
Excellent! Thank you…Now i have something to tinker with. Trying to figure out how to make chrome run the script in the manifest file LOL Fun times
Trying to figure out how to make chrome run the script in the manifest file
We are all waiting for your further questions here … don’t be shy