A shell script is small computer program that is designed to be run or executed by the Unix shell, which is a command-line interpreter. … The shell script is usually contained in a simple text file.
A shell script is a computer program designed to be run by the Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to bescripting languages. Typical operations performed by shell scripts include file manipulation, program execution, and printing text.
Shell scripts allow us to program commands in chains and have the system execute them as a scripted event, just like batch files. They also allow for far more useful functions, such as command substitution. You can invoke a command, like date, and use it’s output as part of a file-naming scheme.