| 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
| by Arround The Web

Calculate the Sum of a Column Using the “Awk” Script in Bash

Comprehensive tutorial on the multiple ways of calculating the sum of a column from a file using the “awk” script in Bash through different examples

Share Button
Read More
| by Arround The Web

Use of Not Equal to the Operator in Bash

Practical tutorial on method of comparing two values using the “!=” and “-ne” operators to check the equality or inequality of two strings or numbers.

Share Button
Read More
| by Arround The Web

How to Find the Array Length in Bash

Tutorial on the methods of counting the length of an array in Bash using the “#” symbol or loop, or using the “wc” or “grep” commands along with examples.

Share Button
Read More
| by Arround The Web

How to Use the Recursive Grep Command to Search in the Directory

Practical guide on how to use the recursive “grep” command to search the content in a directory of multiple files using different types of options and patterns.

Share Button
Read More
| by Arround The Web

Check the Number of Arguments in the Bash Script

Checking the uses of the number of arguments in Bash script for various purposes such as error handling, providing messages based on the number of arguments.

Share Button
Read More
| by Arround The Web

Check If the File Exists in Bash

The method of checking if a regular file exists in Bash or not in the current or particular location using the file test operators with the “test” command.

Share Button
Read More
| by Arround The Web

Bc Command in Bash Scripts

Tutorial on the various uses of the “bc” command in Bash scripts to generate the fractional value of any mathematical calculation with the precision value.

Share Button
Read More
| by Arround The Web

.Bash_Profile File in Bash

Tutorial on the “.bash_profile” file in Bash to set the environment variable or define any script to perform the automated tasks at the startup of the system.

Share Button
Read More
| by Arround The Web

Bash Sleep Command

How to use the Bash sleep command to stop the execution of the script for a certain period or do any scheduled task before executing a particular script.

Share Button
Read More
| by Arround The Web

How To Check Existence of Input Argument in a Bash Shell Script

We can use different techniques to check the existence of input arguments, such as using the “test” command, the “$#” variable, or the “-n” option.

Share Button
Read More
| by Arround The Web

How to Fix – bash: pip: command not found

The “pip: command not found” error can be easily corrected by checking if pip is installed, installing it if necessary, and setting the path to pip in the Bash.

Share Button
Read More
| by Arround The Web

How to Add a New Element to an Array Without Specifying the Index in Bash

To add a New Element to an Array Without Specifying the Index in Bash, use the += operator with the name of the array. Read this guide for more details.

Share Button
Read More