Bash Shell Archives - Tuts Make https://www.tutsmake.com/category/bash-shell/ Tutorials Maker Mon, 17 Apr 2023 06:14:25 +0000 en-US hourly 1 https://www.tutsmake.com/wp-content/uploads/2018/12/cropped-favicon-1024-1-1-32x32.png Bash Shell Archives - Tuts Make https://www.tutsmake.com/category/bash-shell/ 32 32 How to Assign Output of Shell Command To Variable in Bash Shell Script https://www.tutsmake.com/how-to-assign-output-of-shell-command-to-variable-in-bash-shell-script/ https://www.tutsmake.com/how-to-assign-output-of-shell-command-to-variable-in-bash-shell-script/#respond Mon, 17 Apr 2023 06:14:24 +0000 https://www.tutsmake.com/?p=24660 One of the fundamental features of a shell script is the ability to run shell commands and capture their output for further processing. In this tutorial, you will learn how to assign the output of a shell command to a

The post How to Assign Output of Shell Command To Variable in Bash Shell Script appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-assign-output-of-shell-command-to-variable-in-bash-shell-script/feed/ 0
How to Concatenate String Variables in Bash https://www.tutsmake.com/how-to-concatenate-string-variables-in-bash/ https://www.tutsmake.com/how-to-concatenate-string-variables-in-bash/#respond Sun, 16 Apr 2023 10:11:18 +0000 https://www.tutsmake.com/?p=24653 String concatenation is the process of combining two or more strings to form a single string. In this tutorial, you will learn how to concatenate string variables in Bash. How to Concatenate String Variables in Bash With these techniques, you

The post How to Concatenate String Variables in Bash appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-concatenate-string-variables-in-bash/feed/ 0
How to check if a variable is set in Bash https://www.tutsmake.com/how-to-check-if-a-variable-is-set-in-bash/ https://www.tutsmake.com/how-to-check-if-a-variable-is-set-in-bash/#respond Sun, 16 Apr 2023 04:03:23 +0000 https://www.tutsmake.com/?p=24645 When working with Bash scripts, it’s important to check if a variable is set before performing any operations on it. In this tutorial, you will find different ways to check if a variable is set in Bash. How to check

The post How to check if a variable is set in Bash appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-check-if-a-variable-is-set-in-bash/feed/ 0
How to check if a program exists from a Bash script https://www.tutsmake.com/how-to-check-if-a-program-exists-from-a-bash-script/ https://www.tutsmake.com/how-to-check-if-a-program-exists-from-a-bash-script/#respond Sat, 15 Apr 2023 12:00:11 +0000 https://www.tutsmake.com/?p=24641 Whether you are writing a Bash script to perform system administration tasks or for other purposes, you will likely need to check if a particular program is installed on your system before proceeding. In this tutorial, you will learn various

The post How to check if a program exists from a Bash script appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-check-if-a-program-exists-from-a-bash-script/feed/ 0
Bash Shell Split String by Delimiter and Get N-th Element https://www.tutsmake.com/bash-shell-split-string-by-delimiter-and-get-n-th-element/ https://www.tutsmake.com/bash-shell-split-string-by-delimiter-and-get-n-th-element/#respond Fri, 14 Apr 2023 13:28:36 +0000 https://www.tutsmake.com/?p=24632 To bash shell scripting is to split strings by delimiter and extract a specific element from it. In this tutorial, you will learn how to split a string by delimiter and get the N-th element using bash shell scripting. How

The post Bash Shell Split String by Delimiter and Get N-th Element appeared first on Tuts Make.

]]>
https://www.tutsmake.com/bash-shell-split-string-by-delimiter-and-get-n-th-element/feed/ 0
How to Check if a File Does Not Exist in Bash? https://www.tutsmake.com/how-to-check-if-a-file-does-not-exist-in-bash/ https://www.tutsmake.com/how-to-check-if-a-file-does-not-exist-in-bash/#respond Thu, 13 Apr 2023 12:41:47 +0000 https://www.tutsmake.com/?p=24636 Checking if a file exists or not in bash shell script. In this tutorial, you will learn different ways to check if a file does not exist in Bash. How to Check if a File Does Not Exist in Bash?

The post How to Check if a File Does Not Exist in Bash? appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-check-if-a-file-does-not-exist-in-bash/feed/ 0
How to split a string in shell and get first, second and last field https://www.tutsmake.com/how-to-split-a-string-in-shell-and-get-first-second-and-last-field/ https://www.tutsmake.com/how-to-split-a-string-in-shell-and-get-first-second-and-last-field/#respond Thu, 13 Apr 2023 07:44:03 +0000 https://www.tutsmake.com/?p=24624 If you are working with bash shell scripts, you might encounter situations where you need to split a string into different fields and extract certain fields from them. Fortunately, most shell scripts come with built-in tools that can help you

The post How to split a string in shell and get first, second and last field appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-split-a-string-in-shell-and-get-first-second-and-last-field/feed/ 0
How to split a string on a delimiter in Bash https://www.tutsmake.com/how-to-split-a-string-on-a-delimiter-in-bash/ https://www.tutsmake.com/how-to-split-a-string-on-a-delimiter-in-bash/#respond Wed, 12 Apr 2023 06:29:24 +0000 https://www.tutsmake.com/?p=24621 If you’re working with strings in a Bash shell script, you may find yourself needing to split them on a delimiter. This can be a common requirement for parsing data, especially when working with text files or output from other

The post How to split a string on a delimiter in Bash appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-split-a-string-on-a-delimiter-in-bash/feed/ 0
How to check if a string contains a substring in Bash https://www.tutsmake.com/how-to-check-if-a-string-contains-a-substring-in-bash/ https://www.tutsmake.com/how-to-check-if-a-string-contains-a-substring-in-bash/#respond Tue, 11 Apr 2023 12:09:58 +0000 https://www.tutsmake.com/?p=24615 If you’re working with Bash and need to check whether a string contains a particular substring, there are several ways to do it. In this article, we’ll walk you through some of the most common methods for checking whether a

The post How to check if a string contains a substring in Bash appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-check-if-a-string-contains-a-substring-in-bash/feed/ 0
How To Check If a Directory Exists In Bash Shell Script https://www.tutsmake.com/how-to-check-if-a-directory-exists-in-bash-shell-script/ https://www.tutsmake.com/how-to-check-if-a-directory-exists-in-bash-shell-script/#respond Tue, 11 Apr 2023 04:54:48 +0000 https://www.tutsmake.com/?p=24600 When writing shell scripts, it is often necessary to check if a directory exists before performing certain actions. Checking if a directory exists in a shell script can be done in a few different ways, and in this tutorial, you

The post How To Check If a Directory Exists In Bash Shell Script appeared first on Tuts Make.

]]>
https://www.tutsmake.com/how-to-check-if-a-directory-exists-in-bash-shell-script/feed/ 0