| 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
| 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