Please help me on this question.
How to perform this below operation (arithmetic calculations) using Shell Scripting.
sample1.csv
Assets,3,4,5
Loans,4,5,6
reported_activity,7,8,10
sample2.csv
credit,6,7,9
debit,13,5,8
affilate,9,4,5
take all first column values from sample1.csv
3
4
7
& take first column values from sample2.csv file
6
13
9
then calculate using formula :
Assets + ( loans + affiliate *-1) + reported_activity + (credit-debit)
3 +( 4*-1)+7 (6-13)
=3-4+7-7
= -1
similarly, need to perform arithmetic calculations for col2 & col3 of both the .csv files.