Last active
March 8, 2021 20:58
-
-
Save TonyStark/e061ab41191d3f0c278b67644151a754 to your computer and use it in GitHub Desktop.
Shred multiple files in linux with drag and drop gui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
zenity --title="Shred Files BOX" --text="Drag file to below box" --entry --width=600 | cut -c 8- | tr -d '\r' >> /tmp/shredfiles | |
IFS=$'\n' read -d '' -r -a filess < /tmp/shredfiles | |
for ((i=0;i<${#filess[@]};i++)) | |
do | |
file=`python2 -c 'import sys, urllib; print urllib.unquote(sys.argv[1])' "${filess[$i]}"` | |
shred -uvz "$file" > /dev/null 2>&1 | |
done | |
rm /tmp/shredfiles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
READ ME:
install zenity and python
run
bash shredgui.sh
drag single/multiple file in text box and press ok
you can also set keyboard shortcut using "bash /LOCATION/shredgui.sh" command