Weird Files...

Patrick McManus mcmanus at AppliedTheory.com
Fri Oct 27 12:47:58 EDT 2000


[jc at trillian.mit.edu: Fri, Oct 27, 2000 at 11:54:12AM -0400]
> --------
> 
> I wonder what the most abstruse way to remove a file might be?

I make no claims as to robustness, and sure it speaks of permission
and resource abuse, but here's a waster that gets the job done:

#!/bin/bash

d=`pwd`
cd /
tar cvf /tmp/blah.tar $d
rm -rf $d
tar xv -f /tmp/blah.tar --exclude $1
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list