[Gllug] root Desktop settings revert.
Nix
nix at esperi.demon.co.uk
Thu Jun 20 18:56:18 UTC 2002
On Thu, 20 Jun 2002, Alain Williams spake:
> On Thu, Jun 20, 2002 at 03:49:08PM +0100, Stig Brautaset wrote:
>> * Russell Mackenzie <russmack at btinternet.com> spake thus:
>> > I'd be interested to hear how people learned this lesson. For me it was
>> > when I did rm -rf / - twice in two weeks!
>>
>> rm -rf *
>
> How about:
> rm *>o
>
> & you loose all of your source files ...
Or this little beauty I wrote long ago:
for name in /usr/bin/stuff-*; do
rm -f `echo $name | cut -d- -f2`
mv -f $name `echo $name | cut -d- -f2`
done
and then a few days later I ran the script twice. The second time, of
course, no files matched /usr/bin/stuff-*...
(These days I'd use ${...%%...} of course, if I did such a thing at
all --- plus I'd set nullglob...)
--
`What happened?'
`Nick shipped buggy code!'
`Oh, no dinner for him...'
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list