Sun Microsystems, Inc.
spacer spacer
spacer   Sun Educational Services  
spacer
black dot
  black fade
spacer
  Course Catalog
logo

Advanced UNIX Shell Programming

( WT-1311-180 )


     Course DescriptionBack To Top

Course Offered in Partnership With DigitalThink

This course is the second in a two-part series designed for UNIX users who are ready to begin exploring the power and support available in the shell environment. This series covers the essential aspects of shell programming and provides an overview of the similarities and differences among the most popular shells. Students will learn advanced features including embedded command execution, command line argument processing, debugging techniques, use of sed to edit files, and use of awk to format command output.

This course requires a computer running Windows, Macintosh, or UNIX, and telnet software.

eMentoring Services are included with this course.

  • Course length: 8 hours

  • Course details
        id:      WT-1311-180
        subscription duration:  180 days
        list price:  $  325.00


     
         Languages Offered Back To Top

    This course is currently available in English only.

     
         Prerequisites Back To Top

    To succeed fully in this course, students should be able to:

  • Demonstrate completion of UNIX Fundamentals Bundle and Creating Basic UNIX Shell Scripts, or equivalent knowledge and experience
  •  
         Skills Gained Back To Top

    Upon completion of this course, you should be able to:

  • Create a shell script that can add and remove lines from a text file
  • Create a shell script that searches text files for a given pattern
  • Create a shell script that prints a subset of columns from a text file
  • Create a shell script that uses command line arguments and options
  • Identify and debug common problems found in shell scripts
  •  
         Related Courses Back To Top

  • Before: Creating Basic UNIX Shell Scripts
  •  
         Course Content Back To Top



    Module 1: Course introduction Back To Top

  • Course introduction
  • Prerequisites
  • What you need
  • Course resources
  • Your learning community
  • Meet your instructor
  • The course project


  • Module 2: Processes and shells Back To Top

  • Processes and shells
  • The login shell
  • What is a process?
  • Starting other shells
  • Parent and child processes
  • Three ways to run a shell script
  • Specifying the shell in a script
  • The PATH
  • Module wrap up


  • Module 3: Embedded command execution Back To Top

  • Embedded command execution
  • Defining embedded execution
  • Embedded command syntax
  • When to use embedded execution
  • Using embedded execution in a for loop
  • Module wrap up


  • Module 4: Useful UNIX commands Back To Top

  • Useful UNIX commands
  • The find command
  • The wc command
  • The sort command
  • Using variables with the sort command
  • The sleep and clear commands
  • The grep command
  • The -c option to grep
  • The tee command
  • Module wrap up


  • Module 5: Debugging shell scripts Back To Top

  • Debugging shell scripts
  • Types of errors
  • Tracing shell scripts
  • Identifying common errors
  • Data handling errors
  • Identifying common errors
  • Printing progress statements
  • Trapping system signals
  • Module wrap-up


  • Module 6: Writing shell functions Back To Top

  • Writing shell functions
  • The purpose of functions
  • Defining a function
  • Calling a function
  • A script that uses functions
  • Sharing data with functions
  • Creating a reusable function
  • Obtaining functions from others
  • Module wrap-up


  • Module 7: Using sed Back To Top

  • Using sed
  • Introducing sed
  • Basic sed syntax
  • Deleting selected strings
  • Replacing text
  • Printing selected strings
  • Using the and variable
  • Using multiple sed commands
  • Using sed with other commands
  • Module wrap-up


  • Module 8: Using awk Back To Top

  • Using awk
  • Introducing awk
  • Looking at a file from an awk perspective.
  • Basic awk syntax
  • The BEGIN and END sections
  • Selecting part of a file based on a regular expression
  • Using comparisons in awk
  • Combining matches
  • Creating multi-line awk commands
  • Variables
  • Arithmetic
  • Using awk with other commands
  • Module wrap up


  • Module 9: Shell built-in variables and commands Back To Top

  • Shell built-in variables and commands
  • Command-line arguments
  • Shell built-in variables
  • Script options
  • The shift command
  • The set command
  • Using set and shift together
  • Module wrap up


  • Module 10: Course conclusion Back To Top

  • Course conclusion
  • We'd love your feedback
  • Course survey

  • Terms of UsePrivacy PolicyFeedback Copyright 1994-2002 Sun Microsystems, Inc.