THESE NOTES TAKEN FROM THE YOUTUBE VIDEO
“SHELL SCRIPTING CRASH COURSE - BEGINNER LEVEL”
https://youtu.be/v-F3YLd6oMw
SIMPLE IF STATEMENT
COMPARISON
FILE CONDITIONS
CASE STATEMENTS
SIMPLE FOR LOOP
FOR LOOP TO RENAME FILES
WHILE LOOP - READ THROUGH A FILE LINE BY LINE
FUNCTIONS
FUNCTIONS WITH PARAMS
CREATE FOLDER AND WRITE TO A FILE
Shell Loops
for loop
while loop
until loop
loop inside loop
infinite loop
vs
exit codes
$? check if cmd successful or not
0 if command successful
1 if cmd unsuccessful
Functions