|
发表于 2006-3-31 00:06:39
|
显示全部楼层
With array, the easilest is to use for loop, such as- for((i=0;i<${array[@]};i++)); do statments; done
复制代码 In statments, you can format the array output and then assign to a variable. Now you can sed your conf file and find a insert point to insert the variable in. |
|