In this project, I learned about initialization files, local, global, and reserved variables, and special parameters in the Shell. Further, I practiced using expansions, performing arithmetic operations, and utilizing aliases.
-
0.
- 0-alias: Bash script that creates an alias named
lswith valuerm *.
- 0-alias: Bash script that creates an alias named
-
1. Hello you
- 1-hello_you: Bash script that prints
hello user, where user is the current Linux user.
- 1-hello_you: Bash script that prints
-
2. The path to success is to take massive, determined action
- 2-path: Bash script that adds
/actionto thePATH.
- 2-path: Bash script that adds
-
3. If the path be beautiful, let us not ask where it leads
- 3-paths: Bash script that counts the number of directories in the
PATH.
- 3-paths: Bash script that counts the number of directories in the
-
4. Global variables
- 4-global_variables: Bash script that lists environment variables.
-
5. Local variable
- 5-local_variables: Bash script that lists all local variables, environment variables and functions.
-
6. Local variable
- 6-create_local_variable: Bash script that creates
a new local variable named
BETTYwith valueHolberton.
- 6-create_local_variable: Bash script that creates
a new local variable named
-
7. Global variable
- 7-create_global_variable: Bash script that
creates a new global variable named
HOLBERTONwith valueBetty.
- 7-create_global_variable: Bash script that
creates a new global variable named
-
8. Every addition to true knowledge is an addition to human power
- 8-true_knowledge: Bash script that prints the result of the
addition of 128 with the value stored in the environment variable
TRUEKNOWLEDGE, followed by a new line.
- 8-true_knowledge: Bash script that prints the result of the
addition of 128 with the value stored in the environment variable
-
9. Divide and rule
- 9-divide_and_rule: Bash script that prints the result
of
POWERdivided byDIVIDE.POWERandDIVIDEare environment variables.
- 9-divide_and_rule: Bash script that prints the result
of
-
10. Love is anterior to life, posterior to death, initial of creation, and the exponent of breath
- 10-love_exponent_breath: Bash script that displays the
result of
BREATHto the power ofLOVE.BREATHandLOVEare environment variables.
- 10-love_exponent_breath: Bash script that displays the
result of
-
11. There are 10 types of people in the world -- Those who understand binary, and those who don't
- 11-binary_to_decimal: Bash script that converts a number
in base 2 stored in the environment variable
BINARYto base 10.
- 11-binary_to_decimal: Bash script that converts a number
in base 2 stored in the environment variable
-
12. Combination
- 12-combinations: Bash script that prints all possible combinations
of two letters, except
oo, as follows:- Letters are lower cases, from
atoz. - One combination per line.
- Alpha-ordered.
- Letters are lower cases, from
- 12-combinations: Bash script that prints all possible combinations
of two letters, except
-
13. Floats
- 13-print_float: Bash script that prints a number stored in the
environment variable
NUMwith two decimal places.
- 13-print_float: Bash script that prints a number stored in the
environment variable
-
100. Decimal to Hexadecimal
- 100-decimal_to_hexadecimal: Bash script
that converts a number in base 10 stored in the environment variable
DECIMALto base 16.
- 100-decimal_to_hexadecimal: Bash script
that converts a number in base 10 stored in the environment variable
-
101. Everyone is a proponent of strong encryption
- 101-rot13: Bash script that encodes and decodes text using the rot13 encryption.
-
102. The eggs of the brood need to be an odd number
- 102-odd: Bash script that prints every other line from the input, starting with the first line.
-
103. I'm an instant star. Just add water and stir.
- 103-water_and_stir: Bash script that adds the two numbers
stored in the environment variables
WATERandSTIRand prints the result. WATERis in basewater,STIRis in basestir, and the result is in basebehlnort.
- 103-water_and_stir: Bash script that adds the two numbers
stored in the environment variables
- Festus Maithya festusmaithyakcau
All work contained in this project was completed as part of the curriculum for ALX School. ALX School is a campus-based full-stack software engineering program that prepares students for careers in the tech industry using project-based peer learning. For more information, visit this link.