Re: do shell script- sed conundrum
Re: do shell script- sed conundrum
- Subject: Re: do shell script- sed conundrum
- From: Gnarlodious <email@hidden>
- Date: Fri, 17 Feb 2006 11:07:40 -0700
- Thread-topic: do shell script- sed conundrum
I don't understand any of that. Just give us the starting text and desired
ending text.
-- Gnarlie
Entity Eric Geoffroy spoke thus:
> This is a tiny part of a sed script that I'm calling from 'do shell
> script' This is the misbehaving part.
> SOURCE
> Title: King KongTitle: Godzilla
> Title: Mothra
> DESIRED RESULT
> Title: King Kong
> Title: Godzilla
> Title: Mothra
> I worked out the regex to match '\BTitle: '
> to negate the word boundary. In sed though, the boundary is \<
> but I can't figure out how to negate that.
> In my make-believe world, this would work-
> sed 's/\BTitle:/Title:\r/' title.txt
> I also tried ^\<(Title)
> In the real world, the \B is invalid for sed, and the shell in OSX is
> not handling the \r.
> thx
> - Eric
> _______________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden