#!/usr/bin/env bash #------------------------------------------------------------------------------ #shred_file Version: 0.1.1 #Copyright (C) 2007 Josh Barrick (random125@gmail.com) # (C) 2009 Chernysh # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # #***CAUTION*** # Do NOT use on device files like /dev/hda. # If you need to shred these files, refer to the shred man pages. #***CAUTION*** # Use of this script on a file will make recovery impossible, # even with the more expensive file recovery solutions. # #This script will shred the input file, after confirmation. #You will also be notified, when shredding is complete. (Should this be #removed?) #------------------------------------------------------------------------------ file="$1" zenity --question --title="Файл будет удалён нахрен!" --text="Файл будет удалён нахрен! Его не смогут восстановить даже в лучших вражеских лабораториях. Ты точно хочешь удалить нахрен файл $file?" if [ "$?" = 1 ] ; then exit $? else srm -r -z "$file" zenity --info --text="$file: Хороший был файл. Вечного ему забвения." fi