title: Select current and previous line if values are the same in 2 columns
body: <p>Check values in columns 2 and 3, if the values are the same in the previous line and current line( example lines 2-3 and 6-7), then print the lines separated as ,</p>
  
  <p><strong>Input file</strong></p>
  
  <pre><code>1   1   2 35  1
  2   3   4 50  1
  2   3   4 75  1
  4   7   7 85  1
  5   8   6 100 1
  8   6   9 125 1
  4   6   9 200 1
  5   3   2 156 2
  </code></pre>
  
  <p><strong>Desired output</strong></p>
  
  <pre><code>2,3,4,50,1,2,3,4,75,1
  8,6,9,125,1,4,6,9,200,1
  </code></pre>
  
  <p>I tried to modify this code, but not results</p>
  
  <pre><code>awk '{$6=$2 $3 - $p2 $p3} $6==0{print p0; print} {p0=$0;p2=p2;p3=$3}'
  </code></pre>
  
  <p>Thanks in advance.</p>