|
|
|
|
course outline |
|
|
Mastering UNIX Shell Scripts
|
|
|
Select a time frame and/or a location to view the class schedule.
|
|
|
|
|
|
|
|
|
|
To view the current public class schedule for this course select a time frame and/or a location above and click on the Get Schedule button above.
To view a different course outline click the back button to return to the original list of courses.
|
|
|
UXSHEL1
|
4 Days Hands On
|
|
Key Benefits
You will learn:
- How to use all of the significant features of the UNIX shell
- How to develop shell scripts that contain advanced shell constructs
- How to develop shell scripts that use some of the UNIX "power tools"
- How to use the debugging features to speed the development of shell scripts
- How to implement advanced data stream handling by using coprocess communication
- How to write reliable, maintainable, and efficient shell scripts
- About the existing system scripts, thereby enhancing knowledge of the system
- How to make user scripts appear and behave as integral system interpreted programs
|
|
Course Overview
Regular users of UNIX discover that using advanced commands, shell features, and shell scripts improves efficiency, productivity, and their use of UNIX. However, most users discover these capabilities in an ad hoc and inefficient way¾learning by trial and error and without understanding the concepts behind the features they use.
This course deals comprehensively with the capabilities of the UNIX shell and with the utilities commonly used in the development of shell scripts (interpreted programs).
The course is run using the Korn shell¾a superset of the original UNIX Bourne shell, which is rapidly becoming the shell of choice for most users. However, Korn-only features are highlighted at each stage, making this course suitable for users of either shell.
Our UNIX courses are particularly suitable for those companies taking a multivendor open systems view. The training concentrates on a common approach to the variants of UNIX, because the principles, understanding, and use of a UNIX shell are independent of the underlying flavor of the operating system.
|
|
Who Should Attend
Programmers and analysts who operate in UNIX environments; and UNIX system and network managers
|
|
Prerequisites
Participants should have a good working knowledge of the UNIX system, preferably gained through attending our UNIX Fundamentals course. Specific programming skills are not required, but some programming knowledge (any high-level language) is strongly recommended.
|
|
Recommended Follow-On Courses
|
|
Course Contents
Introduction
Review
- Redirection and pipes
- Wildcards
- Creating shell scripts
- The .profile file
- Grouping commands and background execution
Overview
Variables
- Setting and getting variables
- Using ${} and $()
- Exported, read only, and predefined variables
- Length of variables
Parameters
Making Decisions
- Exit status
- If-then
- If-then-else
- If-then-elif-then-else
- Tests
- The case statement
- Logical tests
- More pattern matching
Loops
- The while and until loops
- The for loop
- Break and continue
- The select command
- I/O redirection and loops
- The getopts command
Arithmetic in the Shell
Functions
- Writing functions
- Return values from functions
- Autoload
- Local vs. global variables
- Listing and removing functions
Debugging in the Shell
Handling Arrays
More-Complex I/O
Sed
Awk
- The main awk loop
- Referencing fields
- Predefined awk values
- Variables, operators
- Conditions, loops
- Arrays
|
|
Practical Work
All lectures have an accompanying practical session that not only relates to the newly covered material but also builds on material and solutions from earlier sessions, thereby enabling realistic examples to be considered. The practical sessions account for about half of the course time. Hard-copy and online solutions to all exercises are provided.
|
|
Back
GetSchedule
|
|