What is correct bash syntax for modulus ?
My script has a loop that needs to take some action each 100 repetitions ( such as write to a log ) :
counter = 0
...
divisor = 100
remainder = 0
remainder = counter%=divisor
if $remainder = 0; then ...; else ... ; fi
but I receive error :
counter%=divisor: command not found
=in variable assignments.counter = 0, for example, calls the programcounterwith the arguments=and0.