1. let
    #!/bin/bash
    no1=1;
    no2=5;
    let result=no1+no2 ##不能留空格
    echo $result
    #自加
    let no++
    #自减
    let no--
    #简写
    let no+=6
  2. (())
  3. []
  4. expr
  5. bc #小数和科学计算
    shell之数学运算

相关文章:

  • 2019-12-12
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-10-19
  • 2021-08-06
猜你喜欢
  • 2021-09-02
  • 2021-08-25
  • 2022-02-15
  • 2021-12-06
  • 2022-12-23
相关资源
相似解决方案