[buug] more specific

johnd john at jjdev.com
Wed Apr 30 14:19:59 PDT 2003


On Wed, Apr 30, 2003 at 02:20:27PM -0700, Aleksandr Melentiev wrote:
> Specific answer to your specific question:
> 
> kronos# cat testfile
> aaaaaaaaaaaaaaaUserID=oldid&bbbbbbbbbbbbbbbbbbbb
> 
> kronos# cat testfile | sed -e "s:UserID=oldid:UserID=newid:g" > newfile
> 
> kronos# cat newfile
> aaaaaaaaaaaaaaaUserID=newid&bbbbbbbbbbbbbbbbbbbb
> 

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 &





More information about the buug mailing list