I need to remove a pattern around a certain line:
#undef LZZ_INLINE
#ifdef LZZ_ENABLE_INLINE
#include "somename.inl"
#endif
Should become:
#include "somename.inl"
I do not know somename in advance.
How can this be done using e.g. sed or awk in a generic fashion ?
If the file size allows reading loading it in the memory all at once, you can do
Remove the
.bkfile if everything goes well 🙂