Hi Folks,
A snippet of my Korn shell script is as follows
c1=`grep -c "AAA" file1`
c2=`grep -c "BBB" file2`
Total = $c1 + $c2
I have tried changing the variable types from char to integers using "typeset -i c1" command but that did not help
Any suggestions to how I can add c1 & c2 ?
Thanks in advance
rogers42
A snippet of my Korn shell script is as follows
c1=`grep -c "AAA" file1`
c2=`grep -c "BBB" file2`
Total = $c1 + $c2
I have tried changing the variable types from char to integers using "typeset -i c1" command but that did not help
Any suggestions to how I can add c1 & c2 ?
Thanks in advance
rogers42