title: AWK : Field Separator as Double Pipes or more
body: <p>My data:</p>
  
  <pre><code>-1||"A|AA"||aaa@ymail
  -10||"B ||B|ttB||b|| bb@ymail
  -7||C||c
  </code></pre>
  
  <p>I want to exchange the double pipe delimiters <code>||</code> with a comma <code>,</code> like this:</p>
  
  <pre><code>awk -F'||' -v OFS="," '{$1=$1} 1' 2.txt
  </code></pre>
  
  <p>but the output remains the same. 
  The reverse case (comma delimiter to double pipe), however, works:</p>
  
  <pre><code>awk -F"," -v OFS="||" '{$1=$1} 1' 1.txt
  </code></pre>
  
  <p>What am I doing wrong?</p>