Bash Advanced Scripting & File I/O
Unix
| Intermediate
- 13 Videos | 1h 7m 13s
- Includes Assessment
- Earns a Badge
Explore Bash advanced scripting, such as how to parse output from external commands and handle file I/O. See how to catch and trap interrupts and signals. Employ brace expansion with data ranges. Generate and execute strings as commands with eval. Apply default values for input to handle undefined variables. Create a recursive function and script. Display textual progress indicators. Make a dynamic script inside a script. Read data from a text file into an array, with map file. Edit File Contents with the sed command, and select data from files with the awk command.
WHAT YOU WILL LEARN
-
catch signals or interrupts using traps in a Bash script to allow the script to exit gracefully or handle the interruptioncreate generated strings using brace expansion and use eval to execute strings as commandsuse default values for input and work with undefined variablescreate recursive functions and scripts to solve repetitive problemsuse brace expansion to create, combine, and nest ranges, and create padded numeric values using zero paddingexecute commands for other scripts and then use the outputcreate and implement progress indicators in a Bash script to show an activity or an estimate of when an activity should end
-
create a dynamic script inside a script and then execute that scriptsend a dynamically generated e-mail from a Bash script using built-in mail tools and commandsuse mapfile to read data from a file into an array for further processingedit file contents from within a Bash script by using the stream editor (sed)use simple awk statements to extract data from a file or from the output of another command or scriptcreate scripts that can trap signals and exit gracefully, display progress bar indicators, and read and modify data from a configuration file
IN THIS COURSE
-
1.Catching and Trapping Interrupts and Signals4m 56sUP NEXT
-
2.Using Brace Expansion and Eval6m 19s
-
3.Applying Defaults for Input4m 24s
-
4.Creating a Recursive Function and Script6m 26s
-
5.Using Brace Expansion with Ranges3m 58s
-
6.Handling the Results of Another Script2m 52s
-
7.Using Textual Progress Indicators5m 14s
-
8.Creating Scripts Inside a Script5m 25s
-
9.Sending an E-mail from a Shell Script3m 26s
-
10.Reading Text File Data into an Array4m 39s
-
11.Manipulating File Contents with Sed7m 12s
-
12.Selecting Data from Files with Awk7m 32s
-
13.Exercise: Using Advanced Bash Scripting Techniques4m 50s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.