UNIX Shell and Command Tools
|Duration: 5 days|
|Participants: Technical UNIX users who need broad familiarity with the resources already available in the UNIX system, in order to quickly accomplish daily tasks without unnecessary programming.|
Upon successful completion of this course you will be able to:
- Use shell features, as well as built-in UNIX commands and their options, to accomplish daily data processing tasks with a minimum of programming effort.
- This advanced course begins with a quick review of twelve commands. UNIX command I/O is covered in-depth. Then, the course presents twenty file-processing commands with their most commonly-used options. Half-a-day is spent on sed, the stream editor, and one-and-a-half days on awk, the pattern scanning and processing language. The use of regular expressions with these commands is covered in depth.
- At the end of the course, a section on shell tools reviews user-defined variables, positional parameters, command substitution, and quoting. This section offers a series of challenging exercises that review the entire course. As an alternative, if a student has a suitable real problem that he or she is working on at the moment that can be shared with the class, the class may use that as a case study.
|Prerequisites: Working knowledge of basic UNIX commands such as grep, ls -l, cd, rm, cp, mv, cat, and who; ability to use an editor to create and modify a small file; and ability to use I/O redirection, pipes, and filename generation. Previous attendance at an introductory course on UNIX is recommended.|
|Format: Lecture and discussion (50%) with command line and programming exercises (50%).|
- Command I/O
Typical patterns of I/O
Using - to represent the standard input
- Regular Expressions (In detail.)
- File Processing Commands
If, Test, While, Shift, Exit, Export
Shell quoting mechanisms