Creating Basic UNIX Shell Scripts( WT-1310-180 )
| Course Description |  |

This course is designed for UNIX users who are ready to begin exploring the power and support available in the shell environment. This course covers the essential aspects of shell programming and provides an overview of the similarities and differences among the three most popular shells: the Bourne shell, the C shell, and the Korn shell.
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-1310-180 |
| subscription duration:
180 days
| | list price: $
325.00 |
|
Languages Offered |
 |
This course is currently available in English only.
|
Prerequisites |
 |
To succeed fully in this course, students should be able to: Demonstrate completion of UNIX Fundamentals Bundle, or equivalent knowledge and experience
|
Skills Gained |
 |
Upon completion of this course, you should be able to: Define a shell program and how it interacts with your UNIX systemList the components that make up all shell scriptsDescribe the differences between popular shellsUse different types of shell variables to hold data valuesCreate coherent script objectives and designsRead and write files from within a scriptDefine appropriate tests for conditions in a scriptUse different looping operations to control script flowRedirect input and output to control how data is handled in a script
|
Related Courses |
 |
After: Advanced UNIX Shell Programming
|
Course Content |
 |
Course introductionPrerequisitesWhat you needCourse resourcesYour learning communityMeet your instructorThe Course Project
Defining shell programmingWhat is a shell?What shells are available?Deciding which shell to program forShell scripts within UNIXInterpreted and compiled programsUnderstanding other scripting optionsWhen to use a shell script, other script, or compiled programModule wrap-up
Components of a shell programA shell script as a macroComponents of a shell program: external and built-in commandsTools to manage input and outputTestsVariablesComponents of a shell script: control structuresRegular expressionsModule wrap-up
Writing your first scriptAn interactive "script" on the command lineDefining a script fileUsing a text editorA command to write to the screenA command to read keyboard inputIncluding comments in shell scriptsSetting the file permissionsRunning the scriptModule wrap-up
Working with variablesAccessing command-line argumentsUsing predefined system variablesAccessing environment variablesCreating your own variablesVariable interpretationUsing strings in variablesUsing numbers in variablesDoing math with variablesUsing array variablesModule wrap-up
Designing more complex scriptsDefining a script objectiveDiagramming script flowDeciding on tests and loopsChecking commandsIncluding error trappingMaking the script portableDocumenting the scriptModule wrap-up
|
Module 7: Reading input and writing to files |
Back To Top
| Reading input and writing to filesUsing scripts with non-text filesInteracting with files through other commandsRetrieving user input with readReading data from a fileWriting text lines to a filePrinting formatted informationStoring structured data in a fileModule wrap-up
Testing conditionsHow to use if/then/else statementsLearning to use testsUsing Boolean operatorsTesting file conditionsTesting numeric and string conditionsUsing command results as testsNesting else statementsUsing case statements in place of nested elseModule wrap-up
Looping structuresWhen to use loopsDefining a test to control a loopUsing for loopsUsing while loopsUsing select loopsUsing until loopsUsing break and continue to control flowModule wrap-up
RedirectionDefining STDIN and STDOUTDefining STDERRReviewing output redirectionAppending outputUsing input redirectionUsing a pipeUsing a tee for redirectionIncluding redirected input within a scriptModule wrap-up
Course conclusionWhere do you go from here?We'd love your feedbackHelp us help you learn! |