How do I do if statement arithmetic in bash?

后端 未结 5 2012
感情败类
感情败类 2020-12-04 11:16

I want to do something like this:

if [ $1 % 4 == 0 ]; then
...

But this does not work.

What do I need to do instead?

5条回答
提交回复
热议问题