How to expand a variable into a variable name in fish

前端 未结 0 1860
旧时难觅i
旧时难觅i 2020-12-04 01:40

I need to echo the value of $bootlog1 through $bootlog5.

Something like this:

for n in (seq 5)
    set bootlog$n value
    echo $bootlog$n
end
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题