| by Arround The Web

Bash `set -x` command

This tutorial is on multiple ways of enabling debugging feature for the bash script and the uses of the `set -x` command for debugging the bash script.

Share Button
Read More
| by Arround The Web

Bash Declare Command

Bash doesn’t have a strong type system. To allow type-like behavior, it uses attributes that can be set by a command. ‘declare’ is a bash built-in command that allows you to update attributes applied to variables within the scope of your shell. In addition, it can be used to declare a variable in longhand. Lastly, it allows you to peek into variables.

Share Button
Read More
| by Arround The Web

How to Create Bash Alias with Arguments and Parameters

This is how to create a bash alias with the arguments and parameters and explored the way which leads us to pass the arguments and parameters to the bash alias.

Share Button
Read More
| by Arround The Web

How to Check If a Command Succeeded in Bash

Practical tutorial on two common ways of checking whether your command succeeded in Bash – the conditional if-else statement and the special variable ($?).

Share Button
Read More
| by Arround The Web

How to Write to a File in Bash

There are 4 ways to write any file while bash scripting that are: using directional operators, using tee command, using printf and using heredoc format.

Share Button
Read More
| by Arround The Web

How to Take Input From a User in Bash Script [Advanced Techniques]

You can create interactive scripts by taking input from the user during execution. It also helps you to manipulate the output as per the requirements.

Share Button
Read More
| by Arround The Web

10 Cool and Awesome Bash Loop Examples

In the programming language, there are mainly three types of loops (for, while, and until). 10 cool and awesome Bash Loop examples are discussed.

Share Button
Read More
| by Arround The Web

What are Double Parentheses in Bash

The “((..))” double parentheses are similar to the let command, which you can use to perform arithmetic calculations in a script.

Share Button
Read More
| by Arround The Web

Floating Point Math in Bash

A floating number is a positive and negative whole number with a decimal point like 2.5, 10.8, -5.23, etc. Floating Point Math in Bash is discussed.

Share Button
Read More
| by Arround The Web

Bash Continue Built-In Statement

The bash continue built-in statement resumes the iteration of an enclosing loop such as while, for, select, or until. It has meaning when it applies to loops.

Share Button
Read More
| by Arround The Web

10 Most Important Things to Know About Bash Scripting

Bash is a fantastic command line shell that works as a scripting language. However, Bash does not contain a full-blown programming language.

Share Button
Read More
| by Arround The Web

Mastering Backticks in Linux Bash Scripts

Tutorial on the approach to mastering backticks in Linux Bash scripts to run the multiple commands from the Bash script and execute them based on their output.

Share Button
Read More
| by Arround The Web

Making a Bash Script Return with Different Return Codes on Exit

Comprehensive tutorial on how to make a Bash script return with different return codes on exit using the exit codes by setting up the different return codes.

Share Button
Read More
| by Arround The Web

Greater Than Numerical Comparison in a Bash Script

Tutorial on how to use the greater than numerical comparison in a Bash script by comparing variables, strings, and numbers using the script’s > or -gt command.

Share Button
Read More
| by Arround The Web

Expr in Bash for Multiplying and Division of Numbers

Practical tutorial on how to perform the multiplication and division of numbers in Bash through the expr command by creating arithmetic calculations.

Share Button
Read More
| by Arround The Web

Bash Variable Assignment

Practical tutorial on how to assign the variables in the Bash script using the read command and printing the input in the terminal and practical examples.

Share Button
Read More
| by Arround The Web

Bash OR Operator

Practical tutorial on the OR logical operator which can be used in the Bash script and the difference between the OR logical operator and -o logical operator.

Share Button
Read More
| by Arround The Web

Bash and Conditions: A Complete Guide

Comprehensive tutorial on how to use the Bash conditions in Linux by understanding the conditional statements to create Bash scripts along with examples.

Share Button
Read More
| by Arround The Web

Bash –S Test Condition

Tutorial on the -s test condition in Bash to display and determine whether the file is empty or not in the test command by testing two files in the example.

Share Button
Read More
| by Arround The Web

Bash –F Test Condition

Practical tutorial on how to use the Bash -f test condition to see how to check whether a stored file in the system is regular or not using a Bash script.

Share Button
Read More