Project

Simple Converter

Easy
226 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

Kenneth Satterlee
3 months ago
I advanced my skills using awk and sed for data manipulation and extraction from variables and files. Creating while loops is much more of a natural habit now and I realized that these loops are a great place to start finding reusable code to turn into functions. Most importantly this is my first p ...
Lars Roesicke avatar
Lars Roesicke
8 months ago
I like to work now with loops and looked more into reading input from the command line and from files, doing my first basic arithmetic operation. This thing was quite simple and fun.
Klekovkina Alena avatar
Klekovkina Alena
1 year 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.

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.2
Clarity
4.2