Shell Programming
Bash Scripting: Everything you need to know about Bash-shell programming
In this article, we are going to cover almost every single topic there is in Bash programming. This article mainly focuses on programming spec and not how different UNIX command works.
Last update: Tuesday, 10 September 2019, 3:12 AM | UTC
Bash (AKA Bourne Again Shell) is a type of interpreter that processes shell commands. A shell interpreter takes commands in plain text format and calls Operating System services to do something. For example, ls
command lists the files and folders in a directory. Bash is the improved version of Sh (Bourne Shell). A shell scripting is writing a program for the shell to execute and a shell script is a file or program that shell will execute.
If you are a programmer, then you might have use commands like mv
to move or rename a file, touch
to create a file or nano
to edit a file. We use these commands in a terminal which is the interface to the shell interpreter.
A shell script is a fully-fledged programming language in itself. It can define variables, functions and we can do conditional execution of shell commands as well. Having a terminal…