Unix Replace specific column with one value for another string : <p>I would like to change the fourth column of a file when I have the following description for it. I can not find how to solve it. When the string 1-8 appears I want to replace it with 01-08 but only in the 4 column separated by pipe.</p>

<pre><code>SBMM01|CAM|22|01-08|NAP|VL|OPEN|1
CCSM01|CAM||1-8|NAP|CR|CLOSED|1
EZEM01|CAM|19|01-08|SPL|CC|OPEN|5
SPTD01|CAM|29|25-32|CDO|VG|OPEN|1
NRFL01|||1-8|NAP|CR|CLOSED|5
|||1-8|NAP|CR|CLOSED|5
</code></pre>

<p>by </p>

<pre><code>SBMM01|CAM|22|01-08|NAP|VL|OPEN|1
CCSM01|CAM||01-08|NAP|CR|CLOSED|1
EZEM01|CAM|19|01-08|SPL|CC|OPEN|5
SPTD01|CAM|29|25-32|CDO|VG|OPEN|1
NRFL01|||01-08|NAP|CR|CLOSED|5
|||01-08|NAP|CR|CLOSED|5
</code></pre>

<p>How can change it with sed or awk in Unix?</p>
