shell脚本中比较并输出最大值
来源:互联网 发布:unity3d塔防游戏素材 编辑:程序博客网 时间:2024/05/17 22:53
#!/bin/bash
echo " input first parm:"
read a
echo " input second parm:"
read b
echo " input third parm:"
if [ $a -gt $b -a $a -gt $c ]
then
echo "max is $a"
fi
if [ $b -gt $a -a $b -gt $c ]
then
echo "max is $b"
fi
if [ $c -gt $b -a $c -gt $c ]
then
echo "max is $c"
fi
0 0
- shell脚本中比较并输出最大值
- shell脚本中比较
- shell字符串比较,并在脚本中改变终端路径
- 比较两整数的最大值,在主函数中调用该函数的值并输出其最大值。
- 比较前面板中输入的三个数,并输出其中最大值
- shell脚本中字符串比较
- Android调用shell脚本并获得输出
- 实现三个数的大小比较,并输出最大值
- 从Linux程序中执行shell(程序、脚本)并获得输出结果
- 从Linux程序中执行shell(程序、脚本)并获得输出结果
- 从Linux程序中执行shell(程序、脚本)并获得输出结果
- 从Linux程序中执行shell(程序、脚本)并获得输出结果(转)
- 从Linux程序中执行shell(程序、脚本)并获得输出结果(转)
- 从Linux程序中执行shell(程序、脚本)并获得输出结果
- 从Linux程序中执行shell(程序、脚本)并获得输出结果
- 从Linux程序中执行shell(程序、脚本)并获得输出结果(转)
- Linux程序中执行shell(程序、脚本)并获得输出结果
- 从Linux程序中执行shell(程序、脚本)并获得输出结果
- Python编码相关文章推荐
- makefile 详述
- 理解Maven中的SNAPSHOT版本和正式版本
- UIDynamicAnimator无效问题
- Qt 4.8.5 Windows/Ubuntu下x64编译
- shell脚本中比较并输出最大值
- 《寻找下一个独角兽》天使投资8字箴言:看势、识人、论术、实战
- Ubuntu 12.04安装最新版VLC2.0.2
- Linux下的调试器与文件管理器
- hdu 5969 最大的位或
- iframe 跨域
- AtomicIntegerArray
- ajax json
- Linux下常用文件解压(包括RMP、DEB的解压方法)