| by Arround The Web

How to Check Bash Version

You can check the bash version for many cases, including troubleshooting and finding the currently available version in the system.

Share Button
Read More
| by Arround The Web

How to Set and Use Environment Variables In Bash Script

Environment variables are used to store and manage the data to modify the processes in the Linux system.

Share Button
Read More
| by Arround The Web

Bash Script Loops Examples

Loop allows you to repeat the desired set of instructions numerous times to attain the desired outcome.

Share Button
Read More
| by Arround The Web

What is Shebang: Bash Script Header on First Line?

Shebang works as the absolute path for the script interpreter. It has various names like shebang, bang line, and hashbang.

Share Button
Read More
| by Arround The Web

Bash Script Include Another Bash Script

Including one script in another can help you automate the command sequence’s code block.

Share Button
Read More
| by Arround The Web

What is Proper File Extension for a Bash Script

If you are new to shell scripting, please use .sh scripting and .bash to work around the bash environment. 

Share Button
Read More
| by Arround The Web

How to Make Bash Script Executable

In Linux, you must provide the executable permissions to run bash scripts from the command line.

Share Button
Read More
| by Arround The Web

How to Create File in Bash

There are various simple ways you can use to create a the files in bash. We have explained multiple commands to create bash files from the terminal.

Share Button
Read More
| by Arround The Web

How to Prompt Bash for User Input

Practical guide on how to prompt Bash to take the user input using the “read” command in basic and advanced scripts to implement it without any further queries.

Share Button
Read More
| by Arround The Web

Advanced Bash File Operations

Tutorial on the different advanced types of Bash file operations to know the various file-related tasks such as creating the files, appending the files, etc.

Share Button
Read More
| by Arround The Web

How to Find Yesterday Date in Bash

The date command is used with the –date or -d option with 1 day ago or yesterday strings to get yesterday’s date.

Share Button
Read More
| by Arround The Web

16 Bash Regular Expression (RegEx) Examples Using grep, sed, and awk Commands

Regex is a sequence of special characters that form a pattern to find specific pattern-matching. This guide provides 16 bash regex examples.

Share Button
Read More
| by Arround The Web

Copying Files and Directories in Linux

Practical guide on the ways of copying the files in Linux using the cp, rsync, and scp commands to copy the files and directories locally and to a remote host. In this guide, we will learn about copying files and directories in Linux.

Share Button
Read More
| by Arround The Web

Is there a TRY CATCH command in Bash?

Bash does not have the try-catch command. A few alternatives like checking exit code, the trap command, and tracing output, can be applied to locate the errors instead.

Share Button
Read More
| by Arround The Web

Prompt for Input in Bash

Comprehensive tutorial on the uses of prompt with the “read” command in the Bash script and the benefits of using a prompt message with the “read” command.

Share Button
Read More
| by Arround The Web

Using the =~ Operator in Bash

Comprehensive tutorial on the various methods of using the =~ operator in Bash to search the string values with different types of regular expressions.

Share Button
Read More
| by Arround The Web

Escape a Single Quote in Bash

The purposes of using the single quotes in the Bash script using single quotes with both echo and printf commands to define a string data or execute a command.

Share Button
Read More
| by Arround The Web

Bash Logical AND (&&) Operator

The simple uses of the logical AND operator in Bash script to define the logical expressions in any programming language and check two or more conditions.

Share Button
Read More
| by Arround The Web

Bash Substring after a Specified Character

Practical guide on the various uses of Bash substring extraction to extract the substring from a string data after a specified character using the Bash script.

Share Button
Read More
| by Arround The Web

Pass a Named Argument in a Bash Script

Tutorial on the different ways of using the named arguments in Bash script to know how to pass them and understand which argument contains which type of data.

Share Button
Read More