{ cut -d':' -f2 << END A1: 3 A2: 4 A3: 1 A4: 3 END } | awk 'BEGIN {s=0;} {s+=$1;} END {print "sum =", s;}'
No comments:
Post a Comment