TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Bash-ini-parser: Advanced bash INI parser library

35 点作者 lsferreira42大约 1 个月前

6 条评论

theamk大约 1 个月前
My rule has always been that once a shell script gets too complex, it&#x27;s time to rewrite it in real language. This library is way, way beyond that threshold.<p>My recommendation for rewrite is &quot;python with only stdlib&quot;. Using pip-installed libraries brings in the famous packaging problems, but you don&#x27;t have to use it! Python&#x27;s stdlib is fully &quot;batteries included&quot;, and it has lots of useful things like ini file parser. And if your system has bash, it often has python as well, or at least it&#x27;s easy to install. Things might get a bit more verbose, but they would be much more reliable and debuggable.
评论 #43578892 未加载
评论 #43579191 未加载
评论 #43578433 未加载
评论 #43578240 未加载
评论 #43579469 未加载
评论 #43580629 未加载
评论 #43580406 未加载
评论 #43589851 未加载
评论 #43581106 未加载
评论 #43583242 未加载
pixelbeat大约 1 个月前
For similar functionality have a look at crudini, which is a utility designed for interacting with ini files from shell scripts:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;pixelb&#x2F;crudini">https:&#x2F;&#x2F;github.com&#x2F;pixelb&#x2F;crudini</a>
rastignack大约 1 个月前
Hint: for cicd usage you can parse ini files with git, often present in such situations.
albert_e大约 1 个月前
OT:<p>There is a initiative around bringing Indian languages into today&#x27;s tech.<p>Named BHASHINI.<p>I initially thought the title was referring to that project given the similarity in name.<p>(Bhasha = Language)
cryptonector大约 1 个月前
An ini-&gt;JSON converter + jq should be enough.
评论 #43579474 未加载
IshKebab大约 1 个月前
Definitely one of those &quot;if you&#x27;re using it you&#x27;ve made a big mistake somewhere&quot; pieces of software.