[buug] more specific
johnd
john at jjdev.com
Wed Apr 30 14:32:31 PDT 2003
On Wed, Apr 30, 2003 at 02:29:18PM -0700, Aaron T Porter wrote:
> On Wed, Apr 30, 2003 at 02:19:59PM -0700, johnd wrote:
> > > kronos# cat testfile | sed -e "s:UserID=oldid:UserID=newid:g" > newfile
> >
> > yea, the thinkg is oldid is always different, that is why I am asking
> > for a regex to find everthing that is UserID to the &
>
> Since you mentioned VI, this works in vim:
>
> :%s/UserID=.\{-}&/UserID=foo\&/
> _______________________________________________
thanks, that does it
More information about the buug
mailing list