Image 01
profile-image

jbom

John Boman
shred_file

Nautilus Scripts by sp00k113 13 comments

Hi,
This is the first response I have made on any forum and the first time I have put any code up (glad to do it finally) so excuse me if I don't do this right.
Thanks for the original script, it opened my eyes.
I modified it slightly so it handles multiple files and sets the number of passes to 1 (I was using it on a sd card). I think 1 pass for most media is good enough for normal people, you can change it by modifying or removing the -n 1 argument to shred. Seems to work ok.

files="$@"
zenity --question --title="Shred" --text="Are you sure you wish to shred $# files: $files?"
if [ "$?" = 1 ] ; then
exit $?
else
shred -u -z -n 1 $files
zenity --info --text="$# files shredded: $files."
fi
- Oct 31 2009