Creative data deletion (Re: [SLUG] Why did this happen?)

2002-07-03 Thread Mary
On Thu, Jul 04, 2002 at 12:34:24PM +1000, Peter Hardy wrote: Woo! Are we awarding a prize for most creative way to lose data? ;-) Running rm with - as an argument in order to find out oh so painfully what someone else just did wrong is good. But surely there's someone who has posted one of

Re: Creative data deletion (Re: [SLUG] Why did this happen?)

2002-07-03 Thread Rick Welykochy
Mary wrote: Running rm with - as an argument in order to find out oh so painfully what someone else just did wrong is good. $ rm - rm: cannot remove `-': No such file or directory $ echo - - $ cd - [changes directory to $OLDPWD] $ man bash for further explanation of what the argument '-'

Re: Creative data deletion (Re: [SLUG] Why did this happen?)

2002-07-03 Thread Jeff Waugh
quote who=Mary [1] WARNING: these commands will delete your entire hard drive, up until the point where rm gets so confused about no longer existing that it has an existential crisis. And your printer will probably not work then either. Anyone executing these commands on the strength of this

Re: Creative data deletion (Re: [SLUG] Why did this happen?)

2002-07-03 Thread Colin Humphreys
On Thu, Jul 04, 2002 at 12:52:56PM +1000, Rick Welykochy wrote: Mary wrote: Running rm with - as an argument in order to find out oh so painfully what someone else just did wrong is good. $ rm - rm: cannot remove `-': No such file or directory Reminds me of the time when somehow I

Re: Creative data deletion (Re: [SLUG] Why did this happen?)

2002-07-03 Thread Matthew Dalton
Colin Humphreys wrote: I remember having to write a little perl proggie to remove the -R file, as rm just wasn't going to have a bar of it. Well, not one bar anyway :). This would have worked: rm -- -R Matthew -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info:

Re: Creative data deletion (Re: [SLUG] Why did this happen?)

2002-07-03 Thread Andrew Bennetts
On Thu, Jul 04, 2002 at 02:18:10PM +1000, Colin Humphreys wrote: I remember having to write a little perl proggie to remove the -R file, as rm just wasn't going to have a bar of it. Try rm -- -R. -Andrew. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info:

RE: Creative data deletion (Re: [SLUG] Why did this happen?)

2002-07-03 Thread Tiwari, Rajnish
::I remember having to write a little perl proggie to remove ::the -R file, as ::rm just wasn't going to have a bar of it. :: ::-Colin :: One could try this: rm ./-R A thought. Regards, Rajnish -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: