I have a file with debit credit and withdrawal transactions. I need a bash script that records the balance after every transaction. So file is like this:D:11/02/12:1000.50C:11/03/12:300W:11/05/12:95.50D:11/10/12:125C:11/20/12:265.50where D = debit, C = credit, and W = withdrawalThe output needs to be like this:11/02/12 1000.5011/03/12 700.5011/05/12 605.00and so on.  I have done it in awk and but cannot figure that out how to write in bash.Any advice or sample would be greatly appreciated.
How to record every transaction using Bash
bash;text processing