Home variable-math
Post
Cancel

variable-math

Difference beteeen two numeric variables;

1
2
3
DELETEDAYS=14
WARNDAYS=7
DAYSDIFF=$(($DELETEDAYS - $WARNDAYS))

Other mathematic operators can be used: * / + -

This post is licensed under CC BY 4.0 by the author.