Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions ebook/en/content/010-bash-conditionals.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,29 +132,29 @@ A quick rundown of the structure:

Here is an example of a Bash `case` statement:

```
```bash
#!/bin/bash

echo -n "Enter the name of a car brand: "
read car
read -p "Enter the name of your car brand: " car

case $car in

Tesla)
echo -n "${car}'s factory in the USA."
echo -n "${car}'s car factory is in the USA."
;;

BMW | Mercedes | Audi | Porsche)
echo -n "${car}'s factory in Germany."
echo -n "${car}'s car factory is in Germany."
;;

Toyoda | Mazda | Mitsubishi | Subaru)
echo -n "${car}'s factory in Japan."
Toyota | Mazda | Mitsubishi | Subaru)
echo -n "${car}'s car factory is in Japan."
;;

*)
echo -n "${car} is an unknown car brand."
echo -n "${car} is an unknown car brand"
;;

esac
```

Expand Down