costs

Tool to help you see the impact of recurring costs
git clone git://jacobedwards.org/costs
Log | Files | Refs | README

total.awk (223B)


      1 #!/usr/bin/awk -f
      2 # Copyright 2023 Jacob R. Edwards
      3 # Takes the entries produced by costs.awk and produces the total
      4 # of them all.
      5 
      6 BEGIN {
      7 	FS = "\t";
      8 	OFS = FS;
      9 	OFMT = "%.2f";
     10 }
     11 
     12 {
     13 	t += $2
     14 }
     15 
     16 END {
     17 	print "total", t
     18 }