title: Replacing text between n-th and (n+1)-th delimiter using sed
body: <p>I wonder how I can change a single value on particular position in pipe delimited dataset. </p>
  
  <p>For example, I have data set:</p>
  
  <pre><code>01|456|AAAA|James Bond|AAAA|207085
  02|AAAA|BBBB|Marco Polo|BBBB|937311723
  03|321332|BBBB|Brad Pitt|AAAA|6296903
  04|3213|AAAA|AAAA|BBBB|62969
  </code></pre>
  
  <p>I want to change every "AAAA" value to "XXXX", but only between 4th and 5th pipe character ( | ). So, expected output will look like:</p>
  
  <pre><code>01|456|AAAA|James Bond|XXXX|207085
  02|AAAA|BBBB|Marco Polo|BBBB|937311723
  03|321332|BBBB|Brad Pitt|XXXX|6296903
  04|3213|AAAA|AAAA|BBBB|62969
  </code></pre>
  
  <p>Is it achievable using only <code>sed</code> function, or is it necessary to use something like <code>awk</code>.</p>