Distributed Networks Home
DBWebApplications eWebProgrammer
prev next prev next
  Course navigation
 
Lesson 1
Embedded command execution
 
This module introduces you to the embedded command execution feature of the UNIX shells. Also called command substitution, this allows you to embed one command inside another. It takes the output of the embedded command and uses it as part of the surrounding command. This allows you to capture command output in shell variables or create a command on the fly based on information from another command.
By the end of this module you will be able to:
  1. Explain how embedded command execution works
  2. Identify when embedded commands are most useful
  3. Correctly form an embedded command
  4. Embed a command within a for loop
  5. Embed a command within other common commands
  Course navigation