开发者

in m4's patsubst, how do I replace newlines with spaces?

开发者 https://www.devze.com 2022-12-09 01:13 出处:网络
How can I tell m4\'s patsubstr to replace all newlines in a string with a space? I\'ve tried: patsubst(MULTI_LINE_STR_DEFINE,`\\n\',` \')

How can I tell m4's patsubstr to replace all newlines in a string with a space?

I've tried:

patsubst(MULTI_LINE_STR_DEFINE,`\n',` ')

and

p开发者_如何学Goatsubst(MULTI_LINE_STR_DEFINE,`\\n',` ')


patsubst(MULTI_LINE_STR_DEFINE,`
',` ')

That is, you put the newline, literally, between quotes.

0

精彩评论

暂无评论...
验证码 换一张
取 消