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=
<
Alternatively to the suggested 3 methods you can try let which carries out arithmetic operations on variables as follows:
let COUNT=$FIRSTV-$SECONDV
or
let COUNT=FIRSTV-SECONDV