notes/Adding Columns with AWK-2ZmwM1UQ.sh
#example File1

bob smith 100
tim zim 123
ted fred 450
bob hill 543

#get the sum of column 3

awk '{total += $1} END {print total}' File1

#example File2

bob smith $100
tim zim $123
ted fred $450
bob hill $543

#remove the '$' and then get sum of column 3

awk '{gsub(/\$/,"");total += $3} END {print total}' File2

syntax highlighted by Code2HTML, v. 0.9.1