Luckily, I discovered that bash provides a feature to prefix every element of a variable with a string: MYLIST=(var1 var2 var3) echo ${MYLIST[@]/#/my_} ...
確定! 回上一頁