โ๏ธBash Scripting
Bourne Again Shell
Working Components
Conditional Execution
Shebang
If-Else-Fi
If-Only.sh
If-Elif-Else.sh
Several Conditions - Script.sh
Exercise Script
Q: Create an "If-Else" condition in the "For"-Loop of the "Exercise Script" that prints you the number of characters of the 35th generated value of the variable "var". Submit the number as the answer.
Arguments, Variables, and Arrays
CIDR.sh
Special Variables
Variables
Arrays
Q: Submit the echo statement that would print "www2.inlanefreight.com" when running the last "Arrays.sh" script.
Comparison Operators
String operators
ASCII Table
Integer Operators
File Operators
Boolean and Logical Operators
Logical Operators
Exercise Script
Q: Create an "If-Else" condition in the "For"-Loop that checks if the variable named "var" contains the contents of the variable named "value". Additionally, the variable "var" must contain more than 113,450 characters. If these conditions are met, the script must then print the last 20 characters of the variable "var". Submit these last 20 characters as the answer.
Arithmetic
Arithmetic Operators
VarLength.sh
CIDR.sh
Script Control
Input and Output Control
Input Control
Output Control
CIDR.sh
Flow Control - Loops
For Loops
CIDR.sh
While Loops
Until Loops
Exercise Script
Q: Create a "For" loop that encodes the variable "var" 28 times in "base64". The number of characters in the 28th hash is the value that must be assigned to the "salt" variable.
Flow Control - Branches
Case Statements
Execution Flow
Functions
Parameter Passing
Return Values
Debugging
CIDR.sh - Debugging
CIDR.sh - Verbose Debugging
Last updated