Skip to content

Instantly share code, notes, and snippets.

@navdove
navdove / sample.bankstmt.csv
Created February 11, 2016 16:45
Bash shell one liner to parse numbers and manipulate them (sum for e.g) using awk
grep 'DEPOSIT' sample.bankstmt.csv | cut -d ',' -f4 | awk '{s+=$1} END {print s}'
//produces correct output by summing the numbers
//951.95