Ash数学运算
来源:互联网 发布:js toggle 切换状态 编辑:程序博客网 时间:2024/06/06 04:09
> -----Original Message-----> From: busybox-bounces at mail.busybox.net > [mailto:busybox-bounces at mail.busybox.net] On Behalf Of Aizer > Danny-BDA023> Sent: Monday, January 17, 2005 07:34> To: BusyBox (E-mail)> Subject: [BusyBox] BusyBox ash arithmetic operations> > Hello,> > I was trying to find out whether BusyBox supports simple arithmetic> operations with variables.Well, it depends on which shell you use, as BusyBox containsfour different shells. Ash supports it, and I think msh does too.If you use ash, then you should enable CONFIG_ASH_MATH_SUPPORTto get arithmetic support.The syntax for the arithmetic expressions follow the standard posix shell (IEEE 1003.1) arithmetic syntax (i.e., the same as bash uses).> E.g., something like:> > wc1=`wc -l file1`> wc2=`wc -l file2`> > total=$wc1 + $wc2?????total=$(( $wc1 + $wc2 ))> if [ $total > MAX_WC ]; thenif [ $total -gt MAX_WC ]; then> echo "squeak"> fi> > If it does not support such operations, is there any "workaround"?> > Thanks,> /Danny//Peter
0 0
- Ash数学运算
- ASH
- ASH
- 数学运算
- scss 数学运算,加减乘除运算
- delphi数学运算函数
- 数学运算符
- C#数学运算类
- 数学运算行程问题
- Bash数学运算
- 数学运算英语
- [Language]数学运算
- flex 数学运算
- Delphi数学运算函数
- object 常用 数学运算
- 数学运算工具类
- 数学运算工具类
- dos数学运算
- 扑克序列——第五届蓝桥杯省赛C语言A组第6题
- 什么是#pragma?
- 图像验证码识别(六)——图像中的直线检测
- CGI, FCGI, SCGI, WSGI 释异
- 编程小技巧
- Ash数学运算
- tomcat的配置
- Git安装与配置
- ironic multi conductors realization
- Common Lisp的值类型及SBCL中的底层表示
- RFID理论基础知识(第一次作业)
- My first code kata
- 例题2.1
- 个人爱好编写