0

I have long string

MESSAGE='<style>body{font-family:Arial,sans-serif;margin:0;padding:20px}h1{color:#333}p{margin-bottom:10px}.points{margin-bottom:20px}.point{margin-bottom:10px;list-style-type:disc}</style><p>Bonjour,</p><p>La plateforme INTERACTIVE FACTORY %s va entrer en maintenance.</p><p>Changement(s) :</p><ul>%s<div class="points"></ul></div><p>Laplateforme sera indisponible durant l"opération.</p>'

I want the place holders "%s" to be replaced with two other vars

var1="TOTO"
var2='<li class="points">5.2</li><li class="points">foo=verify-full</li>'

I did this but it's not working

newvar=printf $MESSAGE $var1 $var2

output

<style>body{font-family:Arial,sans-serif;margin:0;padding:20px}h1{color:#333}p{margin-bottom:10px}.points{margin-bottom:20px}.point{margin-bottom:10px;list-style-type:disc}</style><p>Bonjour,</p><p>La

why it's not working and why I get such output ?

Ali
  • 687
  • 8
  • 27

0 Answers0