Bash Programming Guide

Link Description
What is a Bash Script? A full and comprehensive coverage describing what bash is, why its useful, who is the intended user for bash and an introductory tutorial to get started with bash scripting
Create Simple Shell Scripts in Linux Using Vim How to create simple shell scripts in Linux using Vim is explained
3 Hour Bash Tutorial From printing a simple “Hello World” to using conditional statements such as if statements, case statements to using loops such as while, for until loops to awk, grep, sed, and debugging bash scripts.
30 Bash Script Examples This article will help you to get the basic idea on bash programming. Most of the common operations of bash scripting are explained with very simple examples
Bash Echo Examples A variety of uses of echo in the bash terminal and bash scripts are described in this tutorial
Bash How to Assign Output to a Variable? Explain how you can assign the output of a command to a variable in Bash directly via the terminal in this tutorial
How do I Prompt for Input in Bash? How to collect user inputs when creating a Bash script. Let’s take a glance at interpreting and verifying user inputs. We will be using the integrated Bash read command to interpret the Bash user input.
How to Set Environment Variables in Linux An environment variable in Linux can be used to pass information or influence the behavior of an application or a process. This article will explain various ways to set environment variables and how to use them.
How to trim string in bash Remove characters from the starting and end of the string data which is called trimming. Bash has no built-in function to trim string data. But many options are available in bash to remove unwanted characters from string data
Bash if-else statements Conditional statements are used to manage code execution flow and perform tasks based on true and false conditions. Bash if-else statements are explained.
Bash If, Else If, Else Examples Example usage of if, elseif, else
The Bash Conditionals In-Depth Study Easy step-by-step guide on how the conditions are coded and how they are used in if-constructs. The tutorial will feature conditions that are used in loop constructs and the In Bash process wherein True is an exit status of 0 and False is an exit status.
How to compare strings in Bash How to compare string values in bash is shown using various examples in this tutorial
How to Use $IFS in Bash? Tje variable IFS (Internal Field Separator) is used to specify a particular delimiter for string division. In this guide, you will learn how to use various methods to illustrate the process of breaking a string value in bash using the $IFS.
Bash Loops In-Depth Introduction and overview of the concepts and examples of Bash loops.
Full Guide to Bash Loops Definition of Bash loops, applications of loops in programming, advantages of loops in programming, types of loops in Bash, using of loops in Bash, loop control statements, and examples of Bash loops.
Bash Loop Through a List of Strings Do a quick loop through a list of strings in bash or on the terminal
Associative array in Bash In Bash,an associative array can store a string value as an index or key
Bash Arrays In-Depth In Bash, an array can be an indexed array or an associative array. An indexed array is a list whose items are numbered beginning from zero. An associative array is a list where strings have replaced the numbers. In this article, Bash Arrays are explained in-depth.
Full Guide to Bash Arrays Complete guide to Bash Arrays. It includes the definition of arrays, application of arrays, the syntax of arrays in Bash, assigning arrays in Bash, the types of array in Bash, accessing an array in Bash, modification of arrays in Bash, and Bash array examples.
Bash Functions In-Depth In depth study of using functions in bash scripts
Create Bash Functions with Arguments How to pass arguments to functions to modify the functional behavior
How to Return a String from Bash Functions Returning a string value from a function and using that value in a script for other purposes
Date command in Bash Inject the current date or date processing into a bash script using the date command
How to Write to a File in Bash There are multiple ways to read and write a file in bash. The simplest way is using operators. To write multiple lines, “heredoc” can be used, and if you want to write the same data to multiple lines, then the “tee” command is quite handy. In this article, how to write to a file in bash is explained.
How to append a line to a file in bash Sometimes we need to work with a file for programming purposes, and the new line requires to add at the end of the file. This appending task can be done with a few bash techniques
How to Use xargs on Linux xargs is a command line tool. If you want to redirect the output of a command as the argument of another command, then xargs is the tool for you.
How to read file line by line in Bash script How would you write a Bash script that can process a text file one line at a time, this is shown in simple syntax in this tutorial
Bash Range: How to iterate over sequences generated on the shell Generate a sequence of numbers and perform a action with each number in a loop using a bash script
How to Create Bash Alias With Arguments and Parameters Bash aliases allow you to have new syntax in your bash terminal and scripts and easily access longer commands with quick shortcut codes
Bash script to send email There are many ways to send email in Linux. Some common and easy ways to send email in Ubuntu operating system from the terminal is shown in this tutorial using bash scripts
10 Awesome Awk Command Examples Awk command is a powerful tool to process data. It gets input data, manipulates it, and gives results in standard output. Various operations can be performed on rows and columns of a file.
50 sed Command Examples The basic uses of sed command are explained in this tutorial by using 50 unique examples.
Bash Cut Command with Examples The cut command is used to extract the specific portion of text in a file and options using bytes, columns and fields can be added to the command to exclude unwanted items.
Bash base64 encode and decode Encode and decode text for easy transmission over network protocols using bash base64 command