shell script 迭帶命名變數 - Linux

By Franklin
at 2016-04-20T15:13
at 2016-04-20T15:13
Table of Contents
我想要用迴圈來命名陣列名稱
不曉得有沒有辦法做到??
結構大概如下
for name in a b c
do
for (( i=0; i<=5; i++ ))
do
$name[$i] = something # 希望以name為陣列名稱 但這樣寫是不合法的
done
done
最後希望得到
a, b, c 三個陣列
實際上我是需要產生幾百個陣列
不太可能一個一個做..
請大家幫幫忙!!
謝謝!
--
Tags:
Linux
All Comments

By Isla
at 2016-04-24T02:11
at 2016-04-24T02:11

By Olivia
at 2016-04-25T20:17
at 2016-04-25T20:17

By Kristin
at 2016-04-26T01:19
at 2016-04-26T01:19

By Ethan
at 2016-04-28T02:49
at 2016-04-28T02:49

By Ophelia
at 2016-05-01T21:54
at 2016-05-01T21:54
Related Posts
有關 Xmanager3 連線Ubuntu 14.04 的問題

By Todd Johnson
at 2016-04-19T23:35
at 2016-04-19T23:35
如何玩遊戲

By Charlotte
at 2016-04-18T22:43
at 2016-04-18T22:43
DNS 無法解析某網頁

By David
at 2016-04-18T22:30
at 2016-04-18T22:30
szlin - 分散式編譯 icecream 使用心得

By Olivia
at 2016-04-17T13:08
at 2016-04-17T13:08
proxmox zpool的問題

By Jessica
at 2016-04-15T22:37
at 2016-04-15T22:37