2007年7月4日 星期三

shell script : do math

[will@localhost ShellScript]$ cat number.sh
#!/bin/sh

a=3

b=5

ab=$a*$b

echo $ab

ab=$(($a*$b))

echo $ab

[will@localhost ShellScript]$

沒有留言:

網誌存檔

關於我自己