On 8 Apr 2017 22:46, "Bruce Dubbs" <[email protected]> wrote:
Pierre Labastie wrote: > > > On 08/04/2017 23:13, Bruce Dubbs wrote: >> >> >> Would this sed work? >> >> sed -i '/s/#define ZLIB_VERSION/s/1.2.8/1.2.11/' \ >> cpan/Compress-Raw-Zlib/zlib-src/zlib.h >> >> It's a little shorter and clarifies the meaning a bit better. >> >> It could be made even shorter: >> >> '/s/define ZLIB_VERSION/s/8/11/' >> >> but I don't think that is quite as clear. >> > Remove the first /s/? > Right. sed -i '/#define ZLIB_VERSION/s/1.2.8/1.2.11/' \ cpan/Compress-Raw-Zlib/zlib-src/zlib.h -- Bruce That looks good to me. It certainly conveys better meaning than what I wrote! I'd go with your version. Mark.
-- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
