Advertisement · 728 × 90
#
Hashtag
#BashProgramming
Advertisement · 728 × 90

My little #textbasedgame #shellgame is almost done, just need final polishment. Then I'm considering to upload it to github, in #bashcrawl homage, and let folks have a laugh or two. The world needs a good joke and if I can help with bad #bashprogramming, happy to be mine, then.

1 0 1 0
Preview
env2json ($5967821) · Snippets · GitLab GitLab.com

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

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

0 0 0 0

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

1 1 0 1