Skip to content

Instantly share code, notes, and snippets.

@obatiuk
Created March 11, 2017 04:27
Show Gist options
  • Save obatiuk/8a296be5eee645016c78e493824bfbb4 to your computer and use it in GitHub Desktop.
Save obatiuk/8a296be5eee645016c78e493824bfbb4 to your computer and use it in GitHub Desktop.
folder shred example
#!/bin/bash
if dialog=`zenity --window-icon=warning --question --title="Secure Delete" --no-wrap --text="Are you sure you want to securely delete:\n\n $1\n\nand any other files and folders selected? File data will be overwritten and cannot be recovered."`
then /usr/bin/srm -fllrv "$@"| zenity --progress --pulsate --text="File deletion in progress..." --title="Secure Delete" --auto-close
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment