Linux · 2009-02-10

linux的shell下最简单的计算器

linux shell 制作最简单的计算器!

#!/bin/sh
echo '简易计算器  例如 1+3'
read input
echo $[input]