<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel><title>journal@aboutdavid</title><link>https://tilde.club/~aboutdavid/blog/index.html</link>
<description>Thoughts and feelings that come from my brain and into a linux shell.</description><language>en</language>
<lastBuildDate>Fri, 12 Mar 2021 22:42:21 -0500</lastBuildDate>
<pubDate>Fri, 12 Mar 2021 22:42:21 -0500</pubDate>
<atom:link href="https://tilde.club/~aboutdavid/blog/feed.xml" rel="self" type="application/rss+xml" />
<item><title>
programming in bash is great
</title><description><![CDATA[

<p>I started programming CLI tools/applications in bash yesterday. Normally, I make small bash scripts to help run files. I actually kind of like it over Node.js.
Instead of using the (annoying) HTTP module or the node-fetch package, I can do something like this:</p>

<p><code>bash
HTML=$(curl https://example.com)
echo HTML
</code></p>

<p>Bash can be a bit annoying to learn, for example, date formatting. I&rsquo;ve never used the date command before, so instead of typing:</p>

<p><code>js
new Date();
// Tue Mar 09 2021 12:21:59 GMT-0500 (Eastern Standard Time)
</code></p>

<p>You need to run</p>

<p><code>
date +"%B %d, %Y (%r)"
</code>
Which outputs:</p>

<p><code>
March 09, 2021 (12:21:03 PM)
</code></p>

<p>Yeah I know, &ldquo;big deal buddy&rdquo; but seriously, It can be annoying.</p>

<p>Althogh, I do like the fact that I don&rsquo;t need something like <a href="https://momentjs.com/">moment.js</a> to format dates</p>

<p>I also like the fact that I don&rsquo;t need to require a package like readline or inquirer to get user input:</p>

<p><code>bash
echo "Yo! What's your name?"
READ name
echo "Welcome $name!"
</code></p>

<p>Well, thanks for reading, bye!</p>

<!-- text end -->
]]></description><link>https://tilde.club/~aboutdavid/blog/programming-in-bash-is-great.html</link>
<guid>https://tilde.club/~aboutdavid/blog/./programming-in-bash-is-great.html</guid>
<dc:creator>aboutdavid</dc:creator>
<pubDate>Fri, 12 Mar 2021 22:42:19 -0500</pubDate></item>
<item><title>
welcome
</title><description><![CDATA[

<p>Welcome! This is my journal, where I keep thoughts here using <a href="https://github.com/cfenollosa/bashblog">BashBlog</a></p>














<!-- text end -->
]]></description><link>https://tilde.club/~aboutdavid/blog/welcome3309.html</link>
<guid>https://tilde.club/~aboutdavid/blog/./welcome3309.html</guid>
<dc:creator>~aboutdavid</dc:creator>
<pubDate>Tue, 09 Mar 2021 15:55:25 -0500</pubDate></item>
</channel></rss>
