[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
m4_patsubst equivalent of: sed -e 's~(~%28~g' -e 's~)~%29~g'
From: |
m4-discuss |
Subject: |
m4_patsubst equivalent of: sed -e 's~(~%28~g' -e 's~)~%29~g' |
Date: |
Wed, 29 Aug 2018 11:38:59 -0500 |
Is there an m4 macro in one of the autoconf m4 libs that can do
two substitutions like?:
sed -e 's~(~%28~g' -e 's~)~%29~g'
or does this require calling m4_patsubst twice with nesting and
perhaps m4_pushdef / m4_popdef? I want to do this substitution on the
expanded results of another m4 macro.
In general is there a suggested approach to this, without resorting to 'sed'?
--
thanks,
Tom
- m4_patsubst equivalent of: sed -e 's~(~%28~g' -e 's~)~%29~g',
m4-discuss <=