Score:0

Apache2.4 mod_sed, how to use a variable in OutputSed

bf flag

Apache2.4, mod_sed

I am trying to use a variable instead of static text to make a sed command.

SetEnv MY_VAR TESTING
OutputSed "s|TEXT_TO_SEARCH|%{ENV:MY_VAR}|g"

But the TEXT_TO_SEARCH is replaced with the literal text %{ENV:MY_VAR}. How can i use the variable? Thank you.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.