in reply to Remove row if the absolute difference between two columns is greater than a threshold

perl -lane 'print if abs($F[1] - $F[2]) >= 1' infile > outfile
  • Comment on Re: Remove row if the absolute difference between two columns is greater than a threshold
  • Download Code