Shell Scripting 2.1.2
Shell Scripting 2.1.2
Advertisements
A shell script is a computer program designed to be run by the Unix/Linux shell which could be one of the following:
A shell is a command-line interpreter and typical operations performed by shell scripts include file manipulation,
program execution, and printing text.
The shell is, after all, a real programming language, complete with variables, control structures, and so forth. No matter
how complicated a script gets, it is still just a list of commands executed sequentially.
The following script uses the read command which takes the input from the keyboard and assigns it as the value of the
variable PERSON and finally prints it on STDOUT.
#!/bin/sh
$./test.sh
What is your name?
Zara Ali
Hello, Zara Ali
$
Subsequent part of this tutorial will cover Unix/Linux Shell Scripting in detail.