shell基础:数值运算与运算符

linux的shell中,变量的类型默认都是字符串型。

shell基础:数值运算与运算符

shell基础:数值运算与运算符

export将aa声明为环境变量。也可用declare声明。其实就是改变了-x属性

shell基础:数值运算与运算符

shell基础:数值运算与运算符

$(())shell基础:数值运算与运算符

最常用。

shell基础:数值运算与运算符

shell基础:数值运算与运算符

 

相关文章:

  • 2021-11-08
  • 2021-08-05
  • 2021-06-08
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2021-12-14
  • 2021-10-17
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案