I present you
`env2json`
#bash #BashProgramming #BashScript #OpenSource #FOSS #NaturalIntelligence
Read more about it here:
gitlab.com/-/snippets/5...
I present you
`env2json`
#bash #BashProgramming #BashScript #OpenSource #FOSS #NaturalIntelligence
Read more about it here:
gitlab.com/-/snippets/5...
If you want the first word in a string,
up to but excluding the first space,
this is how in #bash :
${message%% *}
#BashProgramming #BashScripting
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
If you want the first word in a string,
up to but excluding the first space,
this is how in #bash :
${message%% *}
#BashProgramming #BashScripting
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
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