In case you need it
I present you
`env2json`
#bash #BashProgramming #BashScript #OpenSource #FOSS #NaturalIntelligence
Read more about it here:
gitlab.com/-/snippets/5...
1
0
0
0
In case you need it
I present you
`env2json`
#bash #BashProgramming #BashScript #OpenSource #FOSS #NaturalIntelligence
Read more about it here:
gitlab.com/-/snippets/5...
Tangentially related:
If you want the first word in a string,
up to but excluding the first space,
this is how in #bash :
${message%% *}
#BashProgramming #BashScripting
FYI
You can emulate this Python line
"keyword".startswith(cmd)
in #bash, using the following:
[[ "keyword" = ${cmd}* ]]
With one catch:
cmd must NOT contain any whitespace.
#BashProgramming #BashScripting #Scripting