On Sat, Sep 23, 2006 at 04:31:56PM -0700, Karl Chen wrote: > >>>>> On 2006-09-23 01:57 PDT, Robert Millan writes: > > Robert> That matches more things than necessary (e.g. replaces > Robert> /usr/sbin/update-grub with /usr/update-grub). If at > Robert> all, it would have to be something like: > > Robert> sed -i /etc/kernel-img.conf -e "s,\(.*\) > Robert> */sbin/update-grub$,\1 update-grub,g" > > Good point. That line looks good (do you need the g though?).
I always add the g so that I don't have to worry on wether I need the g or not. When I want a more strict regex that would only match once, then I write a more strict regex rather than removing g. It is easier for me to read it this way. -- Robert Millan My spam trap is [EMAIL PROTECTED] Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]