> >Update to question:
> >This is what I'm trying (and failing with)
> >sed s/*.\-/\<font color\=\'red\'\>&\<\/font\> G01trn.txt >G01trn2.txt
> >and this is the error:
> > 8532
> >sed: -e expression #1, char 11: Unterminated `s' command
> You're missing the third / in the s/old/new/ command.
> >bash: </font>: No such file or directory
> You forgot to escape the '&', so it's being processed by the shell as a
> command delimiter (it's like ';', except that it runs the preceding
> in the background). You could make things alot easier if you put the
> sed argument in quotes, rather than escaping individual characters:
> sed "s/*.-/<font color='red'>&<\/font>/" G01trn.txt > G01trn2.txt
I did notice that in another thread and quoted the whole cmd (but with
single quotes because the ="red" must be double) did i _have_ to do that?
Quote:> Another thing that worries me is the '*.-' in your old pattern. That will
> match the literal character '*' (because '*' is only special in regular
> expressions when it follows another expression), followed by any
> followed by the literal character '-'. Did you mean '.*-', which matches
> any sequence of characters followed by a literal '-'?
Changed it to
sed 's/[0-9*].-/\<font color\=\"red\"\>&\<\/font\>/' G01trn.txt
and it works, but only replaces the '1st' match in each line. I'm looking
for the way to make it keep replaceing multiple matches on on line...
Thanks for the help Barry,
> Genuity, Woburn, MA
> *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to
> Please DON'T copy followups to me -- I'll assume it wasn't posted to the