Linux commands
  • Introduction - welcome!
  • pwd
  • cd
  • ls
  • mkdir
  • touch
  • date
  • cat
  • rm + rmdir
  • cp
  • mv
  • wc
  • grep
  • find
Basics of scripting
  • Scripting - what it is all about?
  • Invoking the script
  • Sha-bang!
  • Test quiz 1-1
  • Using variables in scripts
  • Explicit definition - showcase
  • Read command
  • command substitution + time measurement
  • Test quiz 1-2
  • Math calculation
  • Math Calculation - showcase
  • Test quiz 1-3
  • Playing with $ : arguments, arguments, arguments
  • More on arguments - playing with IFS and assigning arguments value to a variable
  • Redirection and Piping
  • Redirection and Piping - showcase
  • Exit status
  • Test quiz 1-4
  • Practice test 1-1
IF statement & Decision making
  • Explaining IF
  • Mathematical comparisons
  • String comparisons
  • String comparison - you are not root??
  • Test Quiz 2-1
  • Wildcards
  • Wildcards - making linux command badass
  • Wildcards - create backup script
  • Regular expressions
  • Regular expressions - is there any reachable ip address ??
  • Test quiz 2-2
  • Filesystem related tests
  • Filesystem related tests - testing files permissions
  • && and || - making IF statement shorter
For loop
  • Explaining for loop
  • Add commands output into all .txt files
  • Looping through all script arguments: "$@" or "$*" ??
While loop
  • Explaining while loop
  • Making own cat command with line numbering
CASE
  • Explaining case
  • Recheck users input
  • Creating script with parameters [-f file] [--file file] [-h] [--help]
  • (NEW) Manual Parsing vs Getopts vs Getopt
  • (NEW) Getopts - showcase script
  • (NEW) Getopt - showcase script
Arrays
  • Explaining Array
  • Array - storing output of command into array and making some fun with its items
Functions
  • Explaining Functions
  • Making addition in a function
AWK
  • Explaining AWK
  • print, BEGIN{}, {}, END{}
  • $1, $2, dollars everywhere
  • searching pattern
  • NF - number of fields
  • NR - number of records
  • FS - field separator
  • RS - record separator
  • variable assignment
  • if-else
  • for loop
  • Building script with AWK
  • AWK script PART 1 - reading arguments
  • AWK script PART 2 - was the location set?
  • AWK script PART 3 - searching for specific extension
  • AWK script PART 4 - what about not existing extension?
  • AWK script PART 5 - counting size of files using awk
  • AWK script PART 6 - setting largest and smallest file
  • AWK script PART 7 - printing statistics
  • AWK script PART 8 - reading awk part from separate file
SED
  • Explaining SED
  • p - print command and -n option
  • a append/ i prepand
  • d - delete command
  • c - change command
  • q - quit command
  • -e option Run multiple sed commands
  • -i option Changing files for sure