Sun Educational Services
Shell Programming for System Administrators September 2000
Shell Programming for System
Administrators
SA-245
Copyright 2000 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved.
This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may
be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any.
Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively
licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun Logo, JumpStart, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd.
U.S. Government approval might be required when exporting the product.
RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Government is subject to restrictions of FAR 52.227-14(g) (2)(6/87) and FAR 52.227-19(6/87), or DFAR 252.227-7015
(b)(6/95) and DFAR 227.7202-3(a).
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS, AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE
HELD TO BE LEGALLY INVALID.
Sun Educational Services
Shell Programming for System Administrators September 2000
About This Course
Sun Educational Services
Shell Programming for System Administrators About This Course, slide iv of xvii
Copyright 2000 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services, Revision A
Course Goal
This course provides you with knowledge and skills to:
• Develop shell scripts
• Analyze and design procedures to successfully create
shell scripts
• Automate the tasks that you would frequently perform
on the job
Sun Educational Services
Shell Programming for System Administrators About This Course, slide v of xvii
Copyright 2000 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services, Revision A
Course Map
Shell Basics and Script Analysis and Design
UNIX® Shells
and Shell
Scripts
Writing and
Debugging
Scripts
The Shell
Environment
Useful Utilities and Regular Expression Characters
Regular
Expressions
and grep
The sed Editor The nawk
Programming
Language
Programming Constructs
Conditionals Interactive
Scripts
Loops
Advanced Shell Programming
Advanced
Variables,
Parameters,
and Argument
Lists
Functions Traps