I have the script below to subtract the counts of files between two directories but the COUNT= expression does not work. What is the correct syntax?
COUNT=
<
For simple integer arithmetic, you can also use the builtin let command.
ONE=1 TWO=2 let "THREE = $ONE + $TWO" echo $THREE 3
For more info on let, look here.
let