Re: vim - sed search/replace compatibility
- From: shadstein@xxxxxxxxx
- Date: 28 Oct 2006 00:51:49 -0700
Chris,
Thanks very much. I ended up just replacing any possible special
character with '.' I don't know why I didn't do that before. As Homer
Simpson says, "stupid brain!".
Again, thanks!
Mark
On Oct 23, 2:46 pm, Chris Cox <ccox_nopenott...@xxxxxxxxxxx> wrote:
shadst...@xxxxxxxxx wrote:
oops. I meant an 'ed' script. sorry.
On Oct 21, 1:02 pm, shadst...@xxxxxxxxx wrote:
Hi,
I'm using this:
:%s/file:\/\/\/C:\\Documents%20and%20Settings\\Tom\\Desktop\\Web%20Pics\\/\/pics\//
to do a search/replace in vim. But using:
ed $1 <<END
1,$
s/file:\/\/\/C:\\Documents\%20and\%20Settings\\Tom\\Desktop\\Web\%20Pics\\/\/pics\//
w
q
END
in a sed script doesn't work. I would be grateful if someone could show
where I'm going wrong.
Thank you in advance.
[\]Mark ShadleyEscape the backslashes using a character class.
See if that helps.
.
- Follow-Ups:
- Re: vim - sed search/replace compatibility
- From: Mike
- Re: vim - sed search/replace compatibility
- References:
- vim - sed search/replace compatibility
- From: shadstein
- Re: vim - sed search/replace compatibility
- From: shadstein
- Re: vim - sed search/replace compatibility
- From: Chris Cox
- vim - sed search/replace compatibility
- Prev by Date: Re: dumb Ubuntu question #1
- Next by Date: GRUB stuck in command-line after choosing to boot xp
- Previous by thread: Re: vim - sed search/replace compatibility
- Next by thread: Re: vim - sed search/replace compatibility
- Index(es):
Relevant Pages
|
Loading