經安全檢測,此網站為安全網站,請放心前往原始網址!

Arithmetic in Shell Script | Programming in Linux

The arithmetic operations can be done in shell script using expr command The following program shows the various arithmetic operations #!/bin/sh a=10 b=5 echo `expr $a + $b` echo `expr $a - $b` echo `expr $a * $b` echo `expr $a / $b` x=10.5 y=5.5 echo `ex

linuxprograms.wordpress.com

網址安全性掃描由 google 提供