Bash Advanced Scripting & File I/O

Unix    |    Intermediate
  • 13 videos | 1h 7m 13s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 642 users Rating 4.5 of 642 users (642)
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 interruption
    Create generated strings using brace expansion and use eval to execute strings as commands
    Use default values for input and work with undefined variables
    Create recursive functions and scripts to solve repetitive problems
    Use brace expansion to create, combine, and nest ranges, and create padded numeric values using zero padding
    Execute commands for other scripts and then use the output
    Create 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 script
    Send a dynamically generated e-mail from a bash script using built-in mail tools and commands
    Use mapfile to read data from a file into an array for further processing
    Edit 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 script
    Create scripts that can trap signals and exit gracefully, display progress bar indicators, and read and modify data from a configuration file

IN THIS COURSE

  • 4m 56s
    In this video, you will learn how to catch signals or interrupts using traps in a Bash script to allow the script to exit gracefully or handle the interruption. FREE ACCESS
  • 6m 19s
    In this video, learn how to create generated strings using brace expansion and use eval to execute strings as commands. FREE ACCESS
  • Locked
    3.  Applying Defaults for Input
    4m 24s
    In this video, find out how to use default values for input and work with variables that have no value assigned to them. FREE ACCESS
  • Locked
    4.  Creating a Recursive Function and Script
    6m 26s
    In this video, you will learn how to create recursive functions and scripts to solve repetitive problems. FREE ACCESS
  • Locked
    5.  Using Brace Expansion with Ranges
    3m 58s
    Find out how to use brace expansion to create, combine, and nest ranges, and create padded numeric values using zero padding. FREE ACCESS
  • Locked
    6.  Handling the Results of Another Script
    2m 52s
    During this video, you will learn how to execute commands for other scripts and then use the output. FREE ACCESS
  • Locked
    7.  Using Textual Progress Indicators
    5m 14s
    In this video, you will create and implement progress indicators in a Bash script to show an activity or an estimate of when an activity should end. FREE ACCESS
  • Locked
    8.  Creating Scripts Inside a Script
    5m 25s
    Find out how to create a dynamic script inside a script and then execute that script. FREE ACCESS
  • Locked
    9.  Sending an E-mail from a Shell Script
    3m 26s
    In this video, you will learn how to send a dynamically generated email from a Bash script using built-in mail tools and commands. FREE ACCESS
  • Locked
    10.  Reading Text File Data into an Array
    4m 39s
    In this video, you will use mapfile to read data from a file into an array for further processing. FREE ACCESS
  • Locked
    11.  Manipulating File Contents with Sed
    7m 12s
    During this video, you will learn how to edit file contents from within a Bash script by using the stream editor, sed. FREE ACCESS
  • Locked
    12.  Selecting Data from Files with Awk
    7m 32s
    In this video, learn how to use simple awk statements to extract data from a file or from the output of another command or script. FREE ACCESS
  • Locked
    13.  Exercise: Using Advanced Bash Scripting Techniques
    4m 50s
    In this video, you will learn how to create scripts that can trap signals and exit gracefully, display progress bar indicators, and read and modify data from a configuration file. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.6 of 30 users Rating 4.6 of 30 users (30)
Rating 4.5 of 2806 users Rating 4.5 of 2806 users (2806)
Rating 4.5 of 698 users Rating 4.5 of 698 users (698)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 322 users Rating 4.6 of 322 users (322)
Rating 4.6 of 2240 users Rating 4.6 of 2240 users (2240)
Rating 4.5 of 714 users Rating 4.5 of 714 users (714)