shell 解析文件

最近須要使用shell腳本解析配置文件,因而下來去找來找,發現如下兩種方式都是比較好用的,可是各有各的不足。shell 1.使用source 解析server 特色:方便,簡單ip 不足:當文件中有多個同名的配置項,就很差解析了test 腳本:test.shawk #!/bin/sh配置 source myconfig file #注意,這裏也能夠寫成點 filename,即: .  filena
相關文章
相關標籤/搜索