bash operator usage

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了bash operator usage相关的知识,希望对你有一定的参考价值。

#! /bin/bash
a=100
b=20
echo "a-b=$(($a-$b))"
echo "a+b=$(($a+$b))"
echo "ab=$(($a$b))"
echo "a/b=$(($a/$b))"
echo "ab=$(($a$b))"
echo "a%b=$(($a%$b))"

以上是关于bash operator usage的主要内容,如果未能解决你的问题,请参考以下文章

-bash: ulimit: open files: cannot modify limit: Operation not permitted

OpenShift 4.3环境中创建基于Go的Operator

bash 中的不等波浪号

[: 11: y: unexpected operator问题

解决Linux下编译.sh文件报错 unexpected operator Syntax error: word unexpected

ubuntu16.04 : 4: [: y: unexpected operator