I would like to format string using linux bash:
"<username>{0}</username><password>{1}</password>".format("user", "pass")
Output:
<username>user</username><password>pass</password>
What is the correct command to do this? I can use any other wildcard instead {0} and {1}