On 1/17/06, Randy McMurchy <[EMAIL PROTECTED]> wrote: > Dan Nicholson wrote these words on 01/17/06 17:04 CST: > > > A more accurate sed that could be run repeatedly is > > > > sed -i 's/^ enum$/& xptinfo_enum_1/' whatever/file/it/is > > Well, I don't think it is any more "accurate", but it can be run > repeatedly and that is a good enough reason to change the book. We > did the same thing long ago for the sed in the X instructions as > some folks just can't help themselves and do the sed command just > once. If we can make it as break-free as possible, it can only be > a good thing.
I think it's more accurate because it narrows the regex to what we actually want. It just so happens that there's no other instances of " enum" in the file. But, that's just semantics. Anyway, could you check the syntax before you commit? This was from memory, but I'm pretty sure it works. I guess I'm worried about the leading space. Thanks, Randy. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
