Re: Delimit URL end to space or newline

From: Ed Morton (morton_at_lsupcaemnt.com)
Date: 03/27/05


Date: Sun, 27 Mar 2005 09:10:58 -0600


Alan Connor wrote:
> On comp.unix.shell, in <aLKdnfJfBIKSK9vfRVn-3A@comcast.com>, "Ed
> Morton" wrote:
>
>
>>Alan Connor wrote:
>>
>>
>>>On comp.unix.shell, in <d-ednScI6cd7NNvfRVn-ig@comcast.com>,
>>>"Ed Morton" wrote:
>>>
>>><snip>
>>>
>>>>so, or those in doubt, this would obviously be an appropriate
>>>>application for sed ;-).
>>>
>>>
>>>
>>>Obviously, this is someone impersonating Ed Morton.
>>>
>>>:-))
>>>
>>>P.S. You forgot the second "]" in your regex for the character
>>>class. Should be:
>>>
>>>sed 's|\(http.*\..\{2,4\}/\)\([^[:space:]]*\)$| <a <snip> ^
>>
>>Actually, I posted it, then noticed the problem, so cancelled
>>it and reposted the fixed version. I ended up doing that a
>>couple of times (hadn't had my coffee). You must've caught the
>>cusp of one of the cancel/reposts. The latest version has it
>>right.
>>
>
>
> I didn't say that you had neglected to fix your mistake. I said
> that you had made it. Obviously I did not see your correction or
> I wouldn't have bothered mentioning the subject.
>
> Sure is a rude post, Ed. Are you angry because you couldn't
> bully me into accepting your erroneous opinion of sed?

You misunderstand. I posted my followup so that others who saw your
posting correcting my mistake but didn't see my mistake would understand
that you had good reason to post the correction rather than thinking you
had misread my posting. I was covering your back.

You're welcome (sigh),

        Ed.

> Isn't that just too bad? Maybe if you were to take a pill or
> something?
>
> You remind of my father. He was never wrong either. When I was
> 15 he couldn't bully me into seeing the Vietnam conflict the way
> he did, and tried to strap me with his belt (again) for daring
> to have my own opinion.
>
> I beat him quite severely and left him behind for good to live on
> a hippy commune. (I'd been studying karate on the sly for three
> years, when the *** thought I was doing something else.)
>
> You can't bully me, Ed. Not if your life depended on it. Not even
> the U.S. Government can: They insisted that I go to Vietnam with
> a rifle. I wouldn't. They said that I would therefore have to go
> to prison. I didn't.
>
> AC
>