On 08/04/2017 23:13, Bruce Dubbs wrote:
Mark Pokorny wrote:
I just wanted to highlight a correction in my previous mail. The sed
command should be:
sed -i 's/\(#define ZLIB_VERSION\) "1.2.8"/\1 "1.2.11"/' \
cpan/Compress-Raw-Zlib/zlib-src/zlib.h
WITHOUT the reference to ‘build_error’ at the end. ‘build_error’ is a
local function that I use to dump the last part of the log to the
terminal if the command I’m running fails.
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.
-- Bruce
Remove the first /s/?
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page