Skip to content
Advertisement

Arithmetic in Shell script

After executing this

JavaScript

Here $20 indicates the “S:” entry in each row (I am taking the unique count of all s values),I am getting result as

JavaScript

so what I need is the sum of all occurrence of s values .i.e 93070+11666+230 so result be total=104966

Advertisement

Answer

JavaScript
Advertisement