美文网首页
Bash超级会 - 7.函数 Functions

Bash超级会 - 7.函数 Functions

作者: etfolin | 来源:发表于2021-10-17 18:29 被阅读0次

shell in the SHELL

#!/bin/bash
function Sum()
{
  echo -n "Enter First Number: "
  read a
  echo -n "Enter Second Number: "
  read b
  echo "Sum is: $(( a+b ))"
}

Sum

相关文章

网友评论

      本文标题:Bash超级会 - 7.函数 Functions

      本文链接:https://www.haomeiwen.com/subject/tybhnktx.html