Topics

Bash

About this topic: Articles tagged __TAG__

Showing 218 articles

Topics

Articles

Showing 218 articles

How-tos How to Use while Loop in Bash while loop is one of the most widely used loop structures in almost every programming language. We can specify a condition for the while loop and the statements in the loop are … How-tos How to Use getopts in Bash Script This shows the usage of getopts in bash scripts by parsing options with arguments and parsing options without arguments. How-tos How to Extract Substring in Bash This tutorial demonstrates different ways to extract a substring in bash using the cut command, substring expansion and Internal Field Separator. How-tos How to Split String in Bash This tutorial demonstrates splitting a string on a delimeter in bash by using the tr command, the IFS, the read command, using parameter expansion, and using the cut command. How-tos How to Get File Name and Extension Using Bash A simple bash script that gets file name and its extension separately. How-tos How to Get Script Directory in Bash This tutorial demonstrates getting the directory that a script is located in by using the $0 and dirname, BASH_SOURCE array, readlink command, and realpath command. How-tos How to Make a Bash Alias This tutorial demonstrates the creation and deletion of alias in Bash. How-tos How to Convert Letter Case of Strings in Bash This tutorial demonstrates the conversion of letter case of strings in Bash. How-tos How to Trim Whitespace in Bash This tutorial shows trimming white spaces in bash using the xargs command, the sed command and the awk command. How-tos How to Set Variable to Output of Command in Bash This tutorial demonstrates assigning the output of a command to a variable in bash using command substitution. How-tos How to Add Numbers in Bash This tutorial shows different ways of adding numbers in a bash script using expr, arithmetic expansion, bc and awk. How-tos How to Use set Command in the Bash Shell Learn how to use the set built-in command in Bash. How-tos How to Find Files and Folders in Linux Learn how to use the find command in Linux. How-tos How to Use Array in Linux Bash This article explains how to use array in Linux Bash. How-tos How to Implement the for Loop in Bash Trivial guide to write a for loop iterative structure using Bash script. How-tos How to Fix the Mkvirtualenv Command Not Found Error in Bash This article serves as a guide to fix the mkvirtualenv command not found error in Bash. How-tos How to Exit From Bash Script A beginner guide to Bash scripting and how to exit from a Bash script. How-tos How to Echo Tab Characters in Bash Script This article demonstrates how to echo special characters such as tabs, which would otherwise be converted to a single space character in a Bash script. This extends to shells other … How-tos How to Read From a File or User Input in Bash An article explaining about the input from user and from the file in Bash. How-tos How to User Input in Bash This tutorial will discuss user input in Bash. How-tos How to Replace Characters in a String Using Bash This article discusses different approaches to replace characters in a string using Bash. How-tos How to Check if a Command Exists in Bash This article discusses different approaches to check if a Bash command/file/program/utility exists or not. How-tos How to Start a New Terminal Session in Bash This article explains how to start one or more Bash shell instances from an already running instance. How-tos How to Solve Nodemon Command Not Found This tutorial explains how to solve the nodemon command not found in NodeJS and npm.

← All topics