how would you do that
- Loop through files based on a pattern
- Extract a value from within that files (value is always there and a number)
- Summarize all these values
- echo the sum out
Many thanks in advance and greetings
how would you do that
Many thanks in advance and greetings
To less info to be more exact. So I leave a template only:
let sum=0
for f in __PATTERN__
do
value=__extract__from "$f" # any functionality ...
let sum+=value
done
printf "summary: %u\n" $sum