The shell is just an ordinary program that can be called by a
Unix command.
However, it contains some features (such as variables, control structures,
and so on) that make it similar to a programming language.
You can save a series of shell commands in a file, called a
shell script, to
accomplish specialized functions.
Programming the shell should be attempted only when you are
reasonably confident of your ability to use Unix commands.
Unix is quite a powerful tool and its capabilities become more
apparent when you try your hand at shell programming.
Take time to learn the basics.
Then, when you're faced with a new task, take time to browse through
references to find programs or options that will help you get the job
done more easily.
Once you've done that, learn how to build shell scripts so that you
never have to type a complicated command sequence more than once.