$ expr 5 % 2 1 $ let i=5%2 $ echo $i 1 $ echo 5 % 2 | bc 1 $ ((i=5%2)) $ echo $i 1 转载于:https://www.cnblogs.com/sea-stream/p/9880538.html