Home
Sign Up
Sign In
Distributions
›
Ubuntu
›
Fedora
›
CentOS
中文资源站
›
网易开源镜像站
V2EX
›
Linux
浅谈 Shell 脚本配置文件格式
kodango
·
Jul 2, 2014
· 4871 views
This topic created in 4506 days ago, the information mentioned may be changed or developed.
http://kodango.com/config-file-format-in-shell
脚本
shell
格式
4 replies
•
2014-07-16 14:58:15 +08:00
yuelang85
Jul 2, 2014
1
很有启发,感谢
izoab
Jul 2, 2014
2
挺好,但Shell的话个人还是比较倾向在脚本前面划一片区域当变量写,毕竟脚本通常不是什么大工程。
要是python的话用过Yaml写,也写过数据库,都挺方便的,唯独XML不怎么用,感觉太乱了。
kodango
OP
Jul 2, 2014
3
@
izoab
恩,在公司内部,很多工具是用 shell 写的,所以需要提供统一的配置文件给工具用。
我很认同你的说法,脚本使用 xml 作为配置文件真心累!
Akagi201
Jul 16, 2014
4
function的妙用, 赞
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4971 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 09:11
·
PVG 17:11
·
LAX 01:11
·
JFK 04:11
♥ Do have faith in what you're doing.
❯