On Fri, 26 May 2000, [EMAIL PROTECTED] (Michael O'Donnell) wrote:
>
>
>
> The only thing worse than tricking people into destroying
> their own files is going about it in an inefficient manner,
> so anybody who plans to victimize themselves this way should
> at least consider the following optimizations where I've
> eliminated the need to create the intermediate script file,
> the multiple invocations of sed and the unnecessary use of cat:
>
> eval 'echo xmms | sed -e s/x/r/ -e s/ms/\ -f\ \\// -e s/f/rf/'
Maybe s/he was giving the victim a sporting chance. Note that for the
middle pipeline the file "t" is cat'ed one end and redir'ed into on the
other:
> >To tune your filesystem:
> >echo xmms>t;cat t|sed s/x/r/|sed s/ms/\ -f\ \\//|sed s/f/rf/>./t;sh./t -
^ ^
|----------------------------------------------|
In general this wouldn't work since "t" would be clobbered before
cat opened it!
Glad Michael came up with a robust solution ;-)
Karl Runge
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************