Re: Profanity in the Linux Kernel?!?!?

Chris Adams (cadams@ro.com)
Thu, 10 Jun 1999 08:59:26 -0500


Once upon a time, Riley Williams <rhw@memalpha.cx> said:
> Hi Chris, Mark.
> >> s/f*ck/darn/
>
> >> sh: e2darn: command not found
>
> > Not quite - it would be e2fsdarn. I that must be the kind of
> > darn like darning socks - fixing the holes! :-)
>
> Are you sure?
>
> Q> # echo e2fsck | sed 's/f*ck/darn/'
> Q> e2darn
> Q> #
>
> Doesn't look like it to me...

Surely you meant to have a smiley face here somewhere?

$ echo e2fsck | sed 's/f*ck/darn/'
e2fsdarn
$

If not, you need to upgrade your "sed" to a version that works, because
yours doesn't. In regular expressions, the '*' character says "zero or
more of the preceeding character", so "f*ck" would match "ck", "fck",
"ffck", "fffck", etc., but not "fsck".

-- 
Chris Adams <cadams@ro.com> - System Administrator
Renaissance Internet Services - IBS Interactive, Inc.
Home: http://ro.com/~cadams - Public key: http://ro.com/~cadams/pubkey.txt
I don't speak for anybody but myself - that's enough trouble.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/