Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | WP Backend | RSS2 | Atom

« Today’s scapegoat: religion. | Doesn’t that offend you? »

Recursive Shred And Remove

#!/bin/sh
##  RECURSIVE SHRED AND REMOVE
##  (c) Hal Canary 2005
##  big_geek at halcanary dot org
##  Version:  rm-shred v2005-07-02.
##  This is free software; you can redistribute
##  it and modify it under the terms of version
##  2 of the GNU GPL.
for x in "$@" ; do
  if [ -d "$x" ] ; then
    if [ "$x" != "." -a "$x" != ".." ] ; then
      touch "${x}"/EMPTY
      rm-shred "${x}"/*
      rmdir "${x}"
    fi
  else
    shred -n 1 -u "$x"
  fi
done

Hal Canary | Computers & Code | 2005-11-11 15:30:34 EST
Permanent Link | No Comments

Comments are closed.

Copyright 1997-2007 by Hal Canary.
mailto: h3 at halcanary dot org
xmpp:halcanary@jabber.org
aim:halwcanary
http://halcanary.org