我已经找到了一个解决方案,这可以通过:
原文链接:https://www.f2er.com/bash/388891.html$ Aref=A$J $ echo ${!Aref} building $ Aref=A$J[1] $ echo ${!Aref} blocks $ Aref=A$J[@] $ echo "${!Aref}" building blocks