Table of Contents
Shell Scripting lets you to automate command line tasks. Learn how to automate tasks with our beginner's tutorial guide.
Get started on the fundamentals of writing a shell script. Learn about how to write and execute your first shell script.
Learn how to write and execute your very first shell script.
Learn about the important symbols in shell-scripting and how to use them in commenting, declaring she-bangs, and signifying the end of a command.
Learn how to execute a shell script like any other command.
Learn how to declare variables, manipulate variables, and call special variables.
Learn about the naming conventions used in variables, how to assign values and unset them.
Learn how to find the length of a variable, make variables read-only, make variables persist to subshells, and unset variables from their values.
Learn how to handle cases when your variables aren't set with expansion operators.
Learn about the positional parameters used in the shell that denote arguments, number of arguments and script name. Also learn about special characters.
Learn how to print to standard out, read from standard in and redirect standard in, out and error.
Learn how to use the echo and printf commands to output variables, and see the difference between single and double quotes.
Let's do a quick review on the different types of quotes - double, single, and ticks.
Learn how to use redirection to change manipulate standard input, output and error. Also find out how to append to a file and create pipelines.
Learn how to read user input with the read command and try writing a sample script that gets a user's name and outputs it back out.
Learn all about control flow statements, including exit statuses, logical expressions, file, string, arithmetic tests, if-else and case statements.
Learn about exit statuses, how to retrieve the last exit status, POSIX exit statuses.
Learn how to use the test command, or the [ symbol to evaluate logical expressions.
Perform tests on a file to see if it exists, what type it is, and its permissions settings. Furthermore, compare it to another file with the comparison operator.
Learn how you can use string tests to check two strings for equality and null values.
Learn how to get the shell to evaluate arithmetic equations, and how to test with numbers.
Learn how to write an if-else statement in shell scripting and make your own coin-tossing game!
Learn how to simplify if-else statements with the case construct. Also learn how to build a rock-paper-scissors game through shell scripting!
Learn how to write for, while, until loops on shell scripting for the Linux (bash). Also learn control flow techniques such as continue and break to direct your looping control flow.
Learn how to use for loops in the unix / linux bash shell scripting language.
Learn how to write Linux shell scripting (bash) while and until loops, with examples. Also learn about the shift and getopts commands.
Learn how to write until loops in bash shell scripting.
Learn how to direct control flow in loops with the continue and break keywords.
Learn how to use sed to filter and transform text.
Introduction to using sed on the command line with regular expressions. Learn how to perform search and replace (substitution), printing, writing, reversing, and more!
Learn how to specify a line address to apply your sed command, and print out text.
Learn how to use sed to delete lines in-place from files and standard in, and save edited files.
Learn how to use substitution (search and replace) with the sed command.
Learn how to reference an earlier regular expression with backreferences or the entire matched phrase with ampersands.
Learn how to apply multiple sed commands with the -e option, the semicolon (;) or with sed scripts
Learn how you can write up to ten files in sed per instance.
Learn about the hold buffer, which is like the pattern buffer but for storing and retrieving lines for later use.
Learn GNU awk programming for bash through our tutorial series for beginners.
Learn what awk is, the origins of the name, its features and some of awk's variations.
Learn about awk's workflow with the BEGIN, BODY and END blocks.
Learn how awk operates through records and fields, its separators and field accession variables.
Learn about how awk uses patterns and actions to specify which records and fields to manipulate.