Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emanoelcampos/kitty-ipsum-translator
This repository contains the "Kitty Ipsum Translator" project, demonstrating advanced Bash commands and scripting. It includes a translate.sh script that translates 'kitty ipsum' to 'doggy ipsum'. The repository is a reference for Bash scripting.
https://github.com/emanoelcampos/kitty-ipsum-translator
automation bash-commands bash-script freecodecamp relational-database
Last synced: about 2 months ago
JSON representation
This repository contains the "Kitty Ipsum Translator" project, demonstrating advanced Bash commands and scripting. It includes a translate.sh script that translates 'kitty ipsum' to 'doggy ipsum'. The repository is a reference for Bash scripting.
- Host: GitHub
- URL: https://github.com/emanoelcampos/kitty-ipsum-translator
- Owner: emanoelcampos
- Created: 2024-03-24T00:06:14.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-24T02:01:18.000Z (9 months ago)
- Last Synced: 2024-03-25T02:44:17.213Z (9 months ago)
- Topics: automation, bash-commands, bash-script, freecodecamp, relational-database
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kitty Ipsum Translator
*Learning Documentation*
This project was developed as part of the **Learn Advanced Bash by Building a Kitty Ipsum Translator** course, which is included in the [Relational Database](https://www.freecodecamp.org/learn/relational-database/) certification from freeCodeCamp. The course consists of **140 lessons**, during which I learned about more complex commands and the details of how these commands work.
## Learning Outcomes
### Complex Commands
The `complex-commands.md` file contains examples of the complex commands learned during the course. These include:
- `wc`: This command is used to count the number of lines, words, and characters in a file. For example, `wc -l kitty_ipsum_1.txt` was used to count the number of lines in the `kitty_ipsum_1.txt` file.
- `grep`: This command is used to search for specific patterns in a file. For example, `grep -o 'meow[a-z]*' kitty_ipsum_1.txt | wc -l` was used to count the number of times 'meow' or 'meowzer' appears in the `kitty_ipsum_1.txt` file.
- `sed`: This command is used for text substitution. For example, `sed -E 's/([0-9]+).*/\1/'` was used to extract the line numbers where 'meow' or 'meowzer' appears in the `kitty_ipsum_1.txt` file.
### Scripting
The `translate.sh` script demonstrates the application of these commands in a practical context. This script translates 'kitty ipsum' text into 'doggy ipsum' text by replacing 'catnip' with 'dogchow', 'cat' with 'dog', and 'meow' or 'meowzer' with 'woof'. This is achieved using the `cat` command to read the input file and the `sed` command to perform the text substitutions.
### Command Outputs
If you wish to see the outputs of the commands used in this project, please refer to the [command-outputs.md](bash-complex-commands%2Fcomplex-commands.md) file. This file contains the results of executing the complex commands and scripts discussed in this documentation.## Conclusion
This course provided a comprehensive introduction to advanced Bash scripting, including the use of complex commands and the creation of practical scripts. The knowledge and skills gained from this course will be invaluable for future projects and professional development.