📅  最后修改于: 2022-03-11 14:51:16.454000             🧑  作者: Mango
#!/bin/bash
function copyFiles() {
arr=("$@")
for i in "${arr[@]}";
do
echo "$i"
done
}
array=("one 1" "two 2" "three 3")
copyFiles "${array[@]}"