Project

Simple Converter

Easy
208 completions
~ 7 hours
4.3

Get more familiar with bash commands. Work with variables, user input, arithmetic operators, conditional statements, functions, arrays, regex, and change the file content.

Provided by

JetBrains Academy JetBrains Academy

About

A measurement unit is a standard quantity that expresses a physical amount of a property. The history of mankind knows a lot of different measurement units. The earliest systems were created by the ancient people of Mesopotamia, Egypt, Indus Valley, and Persia. Today, multiple unit systems are used all over the world. Like the United States Customary System, the British Customary System, and the International System Of Units. In this project, you will learn how to convert units with bash.

Training project icon

Training project

This project allows you to practice and strengthen your coding skills, helping you get ready for more advanced tasks ahead.

What you'll learn

Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Learn how to carry out simple unit conversion in bash.
It is time to add more functionality to your program. Start with a welcome message. Ask users what they want to do and end the program with a farewell message.
Make your program persistent. The program should work with a file to add or remove definitions.
Add the ability to select from the stored definitions and carry out the conversion. Print the results to the standard output.

Reviews

Klekovkina Alena avatar
Klekovkina Alena
5 months ago
This project helped me to get the better understanding of fundamental Bash scripting concepts. I learned how to structure a program with functions, manage persistent data by reading from and writing to files, and ensure robustness by validating user input with regular expressions.
Mauro Gonçalves avatar
Mauro Gonçalves
7 months ago
This project showed me that bash can be used to create robust, interactive applications when properly structured. I'll definitely use these patterns in future automation scripts.
Martin Červenka avatar
Martin Červenka
8 months ago
I have learned that bash is really cumbersome script language compared to python. I've learned working with arrays, loops, branching and files. I've learned how to handle user input and reuse code in bash. I've also learned, how to systematically complete complex project in relevant parts.

4.3

Learners who completed this project within the Introduction to Command Line and Unix Shell course rated it as follows:
Usefulness
4.5
Fun
4.1
Clarity
4.1