Convert date from column in bash : <p>My file looks like this:</p>

<pre><code>ID,DATE,NAME
1,10-17-18,John
2,10-12-18,Mary
3,10-19-18,David
</code></pre>

<p>And I want it to look like this:</p>

<pre><code>1,2018-10-17,John
2,2018-10-12,Mary
3,2018-10-19,David
</code></pre>

<p>How can I do that in bash?</p>

<p>Thanks!</p>
