Project done during Full Stack Software Engineering studies at ALX School. It aims to learn about alias builtin, help builtin, local, global and reserved variables (PATH, HOME and PS1), special parameters $?
, expansions, init files, arithmetics and single & double quotes in Shell.
- Scripts written in
Bash 5.1
- Tested on
Ubuntu 20.04 LTS
All of the following files are scripts
Filename | Descriptions |
---|---|
0-alias |
Creates an alias |
1-hello_you |
Prints hello user , where user is the current Linux user. |
2-path |
Add /action to the PATH . /action should be the last directory the shell looks into when looking for a program. |
3-paths |
Counts the number of the directories in the PATH . |
4-global_variables |
List environment variables. |
5-local_variables |
Lists all local variables and environment variables, and functions. |
6-create_local_variable |
Creates a new local variable. |
7-create_global_variable |
Creates a new global variable. |
8-true_knowledge |
Prints the result of the addition of 128 with the value stored in the environment variable TRUEKNOWLEDGE . |
9-divide_and_rule |
Prints the result of POWER divided by DIVIDE . |
10-love_exponent_breath |
Displays the result of BREATH to the power of LOVE . |
11-binary_to_decimal |
Converts a number from base 2 to base 10. |
12-combinations |
Prints all possible combination of two letter, except for oo . |
13-print_float |
Prints a number with two decimal places followed by a new line and stored in NUM . |
100-decimal_to_hexadecimals |
Converts a number from base 10 to base 16. |
101-rot13 |
Encodes and decodes text using the rot13 encryption. |
102-odd |
Prints every other line from the input, starting with the first line. |
103-water_and_stir |
Adds the two numbers stored in the environment variables WATER and STIR and prints the result. |