How to get a particular argument in printf format in bash?
<p>It's needed to build a string <code>foobar is not foo and not bar</code>.</p>

<p>I'm expecting similar code:</p>

<pre><code>$ printf "%1%2 is not %1 and not %2" 'foo' 'bar'
</code></pre>

<p>So, how to pass a particular argument?</p>

<p>my env: </p>

<pre><code>$ bash --version
GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu)
</code></pre>