Answers:
假设一个 file.csv
(以空格分隔的文件名):
file1 file2 file3,password1,output1
file4 file5,password2,output2
file2 file5,password3,output3
您可以使用以下脚本:
#!/bin/bash
cat file.csv | while IFS="," read -r files password output; do zip -e -P $password $output $files; done