Skip to content

Instantly share code, notes, and snippets.

View jhoscar1's full-sized avatar

Jason Oscar jhoscar1

View GitHub Profile
@jhoscar1
jhoscar1 / README.md
Created October 23, 2024 21:30 — forked from magnetikonline/README.md
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

Assignment
Assign value to variable if variable is not already set, value is returned.

Combine with a : no-op to discard/ignore return value.
${variable="value"}
: ${variable="value"}

Keybase proof

I hereby claim:

  • I am jhoscar1 on github.
  • I am jhoscar (https://keybase.io/jhoscar) on keybase.
  • I have a public key ASCzz5YVGZ_IiYGE7CoWk1vmS5v11kIfxOEzxVsHwh9Scwo

To claim this, I am signing this object:

@jhoscar1
jhoscar1 / index.html
Created December 14, 2016 00:33
Weather
<div class="background">
<h1 class="title">Jason's Free Code Camp Zipline</h1>
<h2 id="location" class="title"></h2>
<h1 id="weather"></h1>
<div class="wi"></div>
</div>