我想编写一个脚本来读取文件并将每一行作为选项(或“选项参数”)传递给命令,如下所示:
command -o "1st line" -o "2nd line" ... -o "last line" args
这样做的最简单方法是什么?
command-line bash options shell-script arguments
arguments ×1
bash ×1
command-line ×1
options ×1
shell-script ×1