shell脚本输入输出

shell脚本输入输出

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

getopt和getopts获取命令行参数



使用read进行数据输入




猜你喜欢

转载自blog.csdn.net/a40850273/article/details/80614178