1. Extract pattern from file and do sum of all entries matching the pattern grep ” Sequential ” idle_power.txt | awk ‘{sum += $3} END {print sum}’ Here $3 is which column is to get sum of. Idea is to grep a certain pattern from file from each line and then process output by awk […]
3,169 total views