Hi all,
I need aid in coding a script for excluding the entire row of a text file if the absolute difference between two columns' numerical quantities exceeds or equals a certain number. For example;
name 10 9
If absolute value of column 2 (10) minus column 3 (9) is greater than or equal to 1, then remove the entire row. I am a perl newbie and know to remove a row with a certain string I can use
grep -v "string" file > newfile
but I have no idea how to add in numerical functions such as this.
Thanks for any help