Compare values for a pattern match and execute script

view full story

http://www.unix.com – Here in the input file Code: 23:59:13,devicename,21,server1,700 23:59:13,devicename,22,server2,200 23:59:13,devicename,23,server3,200 23:59:13,devicename,24,server4,200 23:59:13,devicename,25,server5,200 23:59:13,devicename,26,server6,200 23:59:13,devicename,27,server7,200 23:59:23,devicename,28,server8,200 23:59:23,devicename,29,server9,200 23:59:23,devicename,30,server10,200 Here the value of first line and last column is 700 - Value A The Average of value all the other is 200 - Value B Need a script to be executed such If ValueA > Value B AND also h (HowTos)