On Tue, May 23, 2000 at 03:29:00PM -0400, MATT MUNSON wrote:
>
> To tune your filesystem:
> echo xmms>t;cat t|sed s/x/r/|sed s/ms/\ -f\ \\//|sed s/f/rf/>./t;sh ./t -
>
> curious what this action would do. thanks!
Nothing.
the line
cat t| sed .... > t
will truncate t before cat opens it, and consequently t will end
up being an empty file.
now if it redericted it to a different file, you would
end up with a
xmms
x->r
rmms
ms -> -f /
rm -f /
f -> rf
rm -rf /
which is ugly and generally not very nice.
YHL. HAND.
greg
--
Nobody of particular importance.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs