我有以下脚本.
#!/bin/bash d5=me d6=you d7=re for i in {5..7} do echo $"d$i" done
打印出 d5 d6 d7
我期待打印 我 你 重新
bash indirection
bash ×1
indirection ×1