GL375 - Linux Shell Scripting

$1,210.00
$1,210.00
$1,210.00
$1,210.00
Start Date Time Days Price GTR Availability
May 31, 2017 10:00 (EST) 2 $1,210.00 Register
July 06, 2017 10:00 (EST) 2 $1,210.00 Register
September 06, 2017 10:00 (EST) 2 $1,210.00 Register
November 20, 2017 10:00 (EST) 2 $1,210.00 Register

The GL375 is designed to provide the skills necessary to automate tasks on a Unix or Linux system. Systems Administrators and Developers alike can avoid errors, save time and money by replacing repetitive work patterns with shell scripts. Care has been taken to present the GL375 in a format that benefits all students, with or without previous programming experience. Guru Labs believes that the best way to learn shell scripting is writing shell scripts. For this reason, lab time is emphasized. Early labs present the scripting process step by step, while later labs are presented in a challenge format. While official solutions to each lab task are provided, students are encouraged to create their own before examining the solution. In this way, more experienced students are challenged without overwhelming the less experienced.

 

Current Version: F00

Prerequisites:
Solid understanding of Unix-based systems and proficiency on the Unix or Linux command line.

Supported Distributions:
Red Hat Enterprise Linux 5
SUSE Linux Enterprise 11

Course Outline:
INTRODUCTION TO THE SHELL
Shell Script Strengths and Weaknesses
Shells
Example Shell Script
Shell and Environment Variables
Key Environment Variables
General Quoting Rules
Nesting Commands
Help from Commands and Documentation
Getting Help with man & info

LAB TASKS
Shell Variables
Shell Meta-Characters
Command Substitution

SHELL SCRIPTING BASICS
Positional Parameters
printf
Input & Output
alias
Functions
Colors in Scripts
Custom Bash Prompts

LAB TASKS
Aliases
Bash Login Scripts
Create “userinfo” and “sysinfo” functions

WORKING WITH FILES
Communication Channels
File Redirection
Piping Commands Together
Doing Math
Filesystem Structures
Determining Disk Usage With df and du
cron
The crontab Command
crontab Format
/etc/cron.*/ Directories
Sending Email with mail

LAB TASKS
Disk and Filesystem Usage
Connecting Commands

REGULAR EXPRESSIONS
Searching Inside Files
Regular Expression Overview
Regular Expressions
RE Character Classes
RE Quantifiers
RE Parenthesis
The Streaming Editor

LAB TASKS
Pattern Matching with Regular Expressions
Extended Regular Expressions
Using Regular Expressions With sed

BRANCHING AND LOOPING
Exit Status
Comparisons with test
Conditional Statements
Flow Control: case
Flow Control: while and until Loops
The for Loop
Flow Control: select

LAB TASKS
Reporting User Statistics
Monitoring Filesystem Usage

DATA MUNGING
Text Processing with awk
Text Sorting
Duplicate Removal Utility
Extracting Columns of Text

LAB TASKS
Create “rmhost” function
Create “showenv” function
Parsing Mail Server Logs
Fixing Incorrect Files

SECURITY, WHITESPACE AND OTHER GOTCHAS
Gotchas: Maximum Command Length
Gotcha: Whitespace in for Loops
Reading Files with while
Gotcha: $IFS
Gotcha: Printing in .bashrc
Gotcha: Aliases

LAB TASKS
Renaming MP3 Files
Split and Display $PATH
A tar-based Backup

CHALLENGE LAB TASKS
Automated Virtual Host Provisioning