Linux rename command but for dynamic values <p>I have files on a Linux server for example:</p> <pre><code>2103acc.001.lob 2507acc.002.lob 2222acc.021.lob 1210acc.051.lob </code></pre> <p>I would like to change them to:</p> <pre><code>2103acc.pdf 2507acc.pdf 2222acc.pdf 1210acc.pdf </code></pre> <p>I cannot performo</p> <pre><code>rename .001.lob .pdf *.lob </code></pre> <p>because those are dynamics number</p> <p>Can someone write me the solution? Thanks</p>