TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Bash-ini-parser: Advanced bash INI parser library

35 pointsby lsferreira42about 1 month ago

6 comments

theamkabout 1 month ago
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 未加载
pixelbeatabout 1 month ago
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>
rastignackabout 1 month ago
Hint: for cicd usage you can parse ini files with git, often present in such situations.
albert_eabout 1 month ago
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)
cryptonectorabout 1 month ago
An ini-&gt;JSON converter + jq should be enough.
评论 #43579474 未加载
IshKebababout 1 month ago
Definitely one of those &quot;if you&#x27;re using it you&#x27;ve made a big mistake somewhere&quot; pieces of software.