bash

HowTo : Run and Repeat a Command N Times in Bash

In this short note you'll find how to run a command from the Linux command line and repeat it multiple times using loop in Bash.

Mass Emails Sending From Bash Script in Linux

Sending mass emails for testing purposes using Bash Script from the Linux Command Line.

HowTo : Find The Length Of a String or Variable in Bash

This short note shows how to find out the length of a string from the Linux command line, how to count the lengths of each line in a file and how to get the length of a string stored in a variable in Bash and then assign that calculated number of characters to another variable.

"Yes/No" in Bash Script - Prompt for Confirmation

Three simplest ways to prompt for "Yes/No" confirmation in bash script.

Add Character to the Beginning or to the End of Each Line using AWK and SED

From the following article, you'll learn how to add characters to the beginning or to the end of each line in Bash.

It's very easy to append any text, like prefix or suffix, before and after each line, using such Linux command-line editors like SED or AWK.

RegEx : Find Email Addresses in a File using Grep

Here is a best regular expression that will help you to perform a validation and to extract all matched email addresses from a file.

This regular expression matches 99% of the email addresses in use nowadays.

In this article you'll find a regular expression itself and an example of how to extract matched email addresses from a file with the grep command.

Removing First and Last Characters From Strings in Bash

From the following article, you'll learn how to remove first characters from the beginning of each line in Bash and how to print strings between first and last characters using cut command.

You'll also learn how to remove last characters of each line using trick with reverse command.

Pages