8

SHELL PROGRAMMING

Chapter Objectives
  • The meaning of variables and different types of shell variables
  • Writing shell scripts
  • Executing shell scripts
  • How to make shell scripts interactive using the read command
  • Positional parameters, their usage to read command line arguments and their manipulation
  • The exit status and performing various types of tests
  • Decision making and loop–control statements
  • Integer computing and string handling using expr
  • Performing real arithmetic
  • Debugging scripts
  • Recording a session using the script command
  • Having a working environment according one's taste using .profile

One of the important components of all Unix systems is the shell, which acts as a command processor as well as a programming language. We have ...

Get Introduction to Unix and Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.