0x03-shell_variables_expansions 💭
This projects deals with variables and expansions in the shell.
Files
Description
0-alias
Creates an alias
1-hello_you
Displays hello user
where the user is the current Linux user
2-path
Adds /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 directories in the PATH
4-global_variables
Lists environmental variables
5-local_variables
Lists all local and environmental 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 combinations of two letters except oo
13-print_float
Prints a number with two decimal places and stores it in the environment variable NUM
14-decimal_to_hexadecimal
Converts a number from base 10 to base 16
Advanced Tasks
Files
Description
100-rot13
Encodes and decodes text using rot13 encryption
101-odd
Prints every other line from input starting with the first line
102-water_and_stir
Adds the numbers stored in WATER
& STIR
and prints the results
Author
Esteban De La Hoz | Twitter | GitHub