Procedures and variables that used in numerous scripts can be stored in separate files. Thus user can open variable file and change the variable directdly by real case, but not change the script. In this case, I will demo 2 topic. One is using source command to read variable or libary file, another one is controlling variables by array.
在多個script內使用的函式和變數可以儲存在獨立的檔案中,如此,使用者可以依照實際情況直接開啟檔案並修改變數,而不需要改變 script 。在這個範例中,我會示範2個主題:一個是使用source指令讀取變數檔或函式庫,另一個是利用陣列控制變數。