9

Adding the corresponding values for every 5th consecutive numbers

view full story
linux-howto

http://www.unix.com – Dear All, I have a file which is as follows: Input File: Code: 231    100.1 233    99 235    200.9 238    80.1 239    90.2 240    77.0 243    99.5 245    16.20 246    13.55 247    11.8 249    13.7 250    99.6 Expected Output: Code: 231    400 237    247.3 243    141.05 249    113.3 Logic: The 1st column is printing every 5th number in the consecutive order(does not matter if it is not present in the input file (HowTos)