Skip to content

Commit 5682156

Browse files
authored
fix typo (#150)
1 parent 05d28ee commit 5682156

15 files changed

+39
-43
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you are adding a new translation, make sure to make a copy of the `./ebook/en
2525

2626
All the Markdown files for the 'Introduction to Bash Scripting' guide are located within the [`content`](./content) directory for the specific language.
2727

28-
For example if you are adding a Bulgarian transaltion copy the `./ebook/en` folder to `./ebook/bg`, translate the `.md` files in the `content` directory and submit a PR.
28+
For example if you are adding a Bulgarian translation copy the `./ebook/en` folder to `./ebook/bg`, translate the `.md` files in the `content` directory and submit a PR.
2929

3030
### PDF Generation
3131

@@ -37,7 +37,7 @@ Make sure to follow the steps on how to get Ibis installed and how to use it her
3737

3838
## Issue Creation
3939

40-
In the event that you have a issue using the guide or have a suggest for a change but don't want to contribute changes,
40+
In the event that you have an issue using the guide or have a suggestion for a change but don't want to contribute changes,
4141
we are more than happy to help.
4242
Make sure that when you create your issue, it follows the format for the type of issue you select
4343
(it has individual templates for each issue type).

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ I think it's essential always to keep professional and surround yourself with go
132132

133133
For more information, please visit my blog at [https://bobbyiliev.com](https://bobbyiliev.com), follow me on Twitter [@bobbyiliev_](https://twitter.com/bobbyiliev_) and [YouTube](https://www.youtube.com/channel/UCQWmdHTeAO0UvaNqve9udRw).
134134

135-
In case that you want to support me you can By Me a Coffee here:
135+
In case that you want to support me you can Buy Me a Coffee here:
136136

137137
<a href="https://www.buymeacoffee.com/bobbyiliev" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
138138

@@ -167,5 +167,3 @@ If you ever need to create a graphic, poster, invitation, logo, presentation –
167167
## 🤲 Contributing
168168

169169
If you are contributing 🍿 please read the [contributing file](CONTRIBUTING.md) before submitting your pull requests.
170-
171-

ebook/en/content/004-bash-variables.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ You can also add variables in the Command Line outside the Bash script and they
9090
```bash
9191
./devdojo.sh Bobby buddy!
9292
```
93-
This script takes in two parameters `Bobby`and `buddy!` seperated by space. In the `devdojo.sh` file we have the following:
93+
This script takes in two parameters `Bobby`and `buddy!` separated by space. In the `devdojo.sh` file we have the following:
9494

9595
```bash
9696
#!/bin/bash
@@ -117,7 +117,7 @@ echo "Hello there" $@
117117

118118
# $@ : all
119119
```
120-
The ouput for:
120+
The output for:
121121

122122
```bash
123123
./devdojo.sh Bobby buddy!
@@ -129,5 +129,3 @@ Hello there Bobby
129129
Hello there buddy!
130130
Hello there Bobby buddy!
131131
```
132-
133-

ebook/en/content/008-bash-arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ If you have ever done any programming, you are probably already familiar with ar
44

55
But just in case you are not a developer, the main thing that you need to know is that unlike variables, arrays can hold several values under one name.
66

7-
You can initialize an array by assigning values devided by space and enclosed in `()`. Example:
7+
You can initialize an array by assigning values divided by space and enclosed in `()`. Example:
88

99
```bash
1010
my_array=("value 1" "value 2" "value 3" "value 4")

ebook/en/content/009-bash-conditional-expressions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ As with other programming languages you can use `AND` & `OR` conditions:
173173

174174
## Exit status operators
175175

176-
* returns true if the the command was successful without any errors
176+
* returns true if the command was successful without any errors
177177

178178
```bash
179179
[[ $? -eq 0 ]]
180180
```
181181

182-
* returns true if the the command was not successful or had errors
182+
* returns true if the command was not successful or had errors
183183

184184
```bash
185185
[[ $? -gt 0 ]]

ebook/en/content/010-bash-conditionals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fi
7878

7979
If you put this on top of your script it would exit in case that the EUID is 0 and would not execute the rest of the script. This was discussed on [the DigitalOcean community forum](https://www.digitalocean.com/community/questions/how-to-check-if-running-as-root-in-a-bash-script).
8080

81-
You can also test multiple conditions with an `if` statement. In this example we want to make sure that the user is neither the admin user or the root user to ensure the script is incapable of causing too much damage. We'll use the `or` operator in this example, noted by `||`. This means that either of the conditions needs to be true. If we used the `and` operator of `&&` then both conditions would need to be true.
81+
You can also test multiple conditions with an `if` statement. In this example we want to make sure that the user is neither the admin user nor the root user to ensure the script is incapable of causing too much damage. We'll use the `or` operator in this example, noted by `||`. This means that either of the conditions needs to be true. If we used the `and` operator of `&&` then both conditions would need to be true.
8282

8383
```bash
8484
#!/bin/bash
@@ -96,7 +96,7 @@ else
9696
fi
9797
```
9898

99-
If you have multiple conditions and scenerios, then can use `elif` statement with `if` and `else` statements.
99+
If you have multiple conditions and scenarios, then can use `elif` statement with `if` and `else` statements.
100100

101101
```bash
102102
#!/bin/bash

ebook/en/content/014-creating-custom-bash-commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
As a developer or system administrator, you might have to spend a lot of time in your terminal. I always try to look for ways to optimize any repetitive tasks.
44

5-
One way to do that is to either write short bash scripts or create custom commands also known as aliases. For example, rather than typing a really long command every time you could just create a short cut for it.
5+
One way to do that is to either write short bash scripts or create custom commands also known as aliases. For example, rather than typing a really long command every time you could just create a shortcut for it.
66

77
## Example
88

@@ -23,7 +23,7 @@ To avoid that, we can create an alias, so rather than typing the whole command,
2323
alias conn="netstat -plant | grep '80\|443' | grep -v LISTEN | wc -l"
2424
```
2525

26-
That way we are creating an alias called `conn` which would essentially be a 'short cut' for our long `netstat` command. Now if you run just `conn`:
26+
That way we are creating an alias called `conn` which would essentially be a 'shortcut' for our long `netstat` command. Now if you run just `conn`:
2727

2828
```bash
2929
conn

ebook/en/content/016-creating-an-interactive-menu-in-bash.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ $(ColorBlue 'Choose an option:') "
135135

136136
### A quick rundown of the code
137137

138-
First we just echo out the menu optsions with some color:
138+
First we just echo out the menu options with some color:
139139

140140
```
141141
echo -ne "
@@ -302,4 +302,4 @@ You will be able to choose a different option from the list and each number will
302302

303303
You now know how to create a Bash menu and implement it in your scripts so that users could select different values!
304304

305-
>{notice} This content was initially posted on [DevDojo.com](https://devdojo.com/bobbyiliev/how-to-work-with-json-in-bash-using-jq)
305+
>{notice} This content was initially posted on [DevDojo.com](https://devdojo.com/bobbyiliev/how-to-work-with-json-in-bash-using-jq)

ebook/en/content/017-executing-bash-script-on-multiple-remote-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Any command that you can run from the command line can be used in a bash script.
44

55
Let's have a hypothetical scenario where you need to execute a BASH script on multiple remote servers, but you don't want to manually copy the script to each server, then again login to each server individually and only then execute the script.
66

7-
Of course you could use a tool like Ansible but lets learn how to do that with Bash!
7+
Of course you could use a tool like Ansible but let's learn how to do that with Bash!
88

99
## Prerequisites
1010

ebook/en/content/018-working-with-json-in-bash-using-jq.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Work with JSON in BASH using jq
22

3-
The `jq` command-line tool is is a lightweight and flexible command-line **JSON** processor. It is great for parsing JSON output in BASH.
3+
The `jq` command-line tool is a lightweight and flexible command-line **JSON** processor. It is great for parsing JSON output in BASH.
44

55
One of the great things about `jq` is that it is written in portable C, and it has zero runtime dependencies. All you need to do is to download a single binary or use a package manager like apt and install it with a single command.
66

77
## Planning the script
88

9-
For the demo in this tutorial, I would use an external REST API that returns a simple JSON ouput called the [QuizAPI](https://quizapi.io/):
9+
For the demo in this tutorial, I would use an external REST API that returns a simple JSON output called the [QuizAPI](https://quizapi.io/):
1010

1111
> [https://quizapi.io/](https://quizapi.io/)
1212
@@ -92,7 +92,7 @@ After running the curl command, the output which you would get would look like t
9292

9393
![Raw Json output](https://imgur.com/KghOfzj.png)
9494

95-
This could be quite hard to read, but thanks to the jq command-line tool, all we need to do is pipe the curl command to jq and we would see a nice formated JSON output:
95+
This could be quite hard to read, but thanks to the jq command-line tool, all we need to do is pipe the curl command to jq and we would see a nice formatted JSON output:
9696

9797
```bash
9898
curl "https://quizapi.io/api/v1/questions?apiKey=${API_KEY}&limit=10" | jq
@@ -222,4 +222,4 @@ And for more information on the **QuizAPI**, you could take a look at the offici
222222

223223
* [https://quizapi.io/docs/1.0/overview](https://quizapi.io/docs/1.0/overview)
224224

225-
>{notice} This content was initially posted on [DevDojo.com](https://devdojo.com/bobbyiliev/how-to-work-with-json-in-bash-using-jq)
225+
>{notice} This content was initially posted on [DevDojo.com](https://devdojo.com/bobbyiliev/how-to-work-with-json-in-bash-using-jq)

0 commit comments

Comments
 (0)