A Self Help Guide to Bash
If you've ever used Bash and felt the need to see a therapist afterwards, then read this, because it will save you the money.
Note: I've abandoned this guide. I'm working with F# on distributed systems and my efforts will go in that direction.
a confession
I had trouble learning Bash. I found that I could never remember how to write simple things like an if statement.
![](https://static.ghost.org/v4.0.0/images/publication-cover.jpg)
hello world
There can’t be a space between the variable name and the value. Why? Because whenever Bash sees a space it thinks that the text preceding is the start of a command, and tries to run it
![](https://static.ghost.org/v4.0.0/images/publication-cover.jpg)
if statements
This isn’t how other languages work. What’s going on? The reason is in the grammar of the if statement. The stuff that follows the if has to be a command.
![](https://static.ghost.org/v4.0.0/images/publication-cover.jpg)