BASH Articles

Bash: Interactive versus non-interactive scripts

Bash, or the Bourne Again Shell, is a popular command-line interpreter for Unix-based systems. It is often used to write scripts, which are essentially just a series of commands that are executed in order. However, there are two types of scripts in Bash: interactive...

Dealing with user input in bash script

Dealing with user input in bash script can be a tricky task, but with a little bit of knowledge and practice, it becomes a breeze. In this article, we will take a look at some of the ways to handle user input in bash script, including examples to help you understand...

Variable naming in bash script

When it comes to writing a bash script, one of the most important things to keep in mind is how you name your variables. Why is this so important, you might ask? Well, there are a few reasons. First and foremost, variable naming in bash scripts can greatly affect the...

What is a variable in bash script?

When it comes to programming, variables are a fundamental concept that you'll come across in any language. They're used to store and manipulate data, and Bash is no exception. In this article, we'll be taking a look at what variables are, how to use them in Bash, and...