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

1

3

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

patsubst(MULTI_LINE_STR_DEFINE,`\\n',` ')
Extenuate answered 14/10, 2009 at 17:5 Comment(0)
M
7
patsubst(MULTI_LINE_STR_DEFINE,`
',` ')

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

Megalomania answered 14/10, 2009 at 17:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.