Skip to content

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.

Notifications You must be signed in to change notification settings

emanoelcampos/kitty-ipsum-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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 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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages