shell脚本输入输出

  • $n:第n个参数(${10})
  • $#:参数总数
  • $*:以一个整体保存所有参数
  • [email protected]:以独立形式保存每个参数

getopt和getopts获取命令行参数

shell脚本输入输出

shell脚本输入输出

使用read进行数据输入

shell脚本输入输出

shell脚本输入输出


相关文章: