bash scripting Archives - LinuxTechLab https://linuxtechlab.com/tag/bash-scripting/ Linux Devops Tutorial, Scripting tutorials, how to's , Tips & Tricks Wed, 16 Jun 2021 16:14:49 +0000 en-US hourly 1 https://linuxtechlab.com/wp-content/uploads/2017/01/cropped-Logomakr_95pQXj-1-32x32.png bash scripting Archives - LinuxTechLab https://linuxtechlab.com/tag/bash-scripting/ 32 32 13- BASH Scripting – Creating Bash Functions for shell script https://linuxtechlab.com/13-creating-functions-script/ https://linuxtechlab.com/13-creating-functions-script/#respond Wed, 16 Jun 2021 16:15:48 +0000 https://linuxtechlab.com/?p=581 In our last tutorial, we discussed advanced uses of I/O redirection & we will now learn to create functions for our Bash / shell scripts....

The post 13- BASH Scripting – Creating Bash Functions for shell script appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/13-creating-functions-script/feed/ 0
Bash Scripting: Learn to use Basic REGEX (Part 2) https://linuxtechlab.com/bash-scripting-use-regex-intermediate/ https://linuxtechlab.com/bash-scripting-use-regex-intermediate/#comments Sun, 20 Dec 2020 06:18:59 +0000 https://linuxtechlab.com/?p=2898 In our earlier tutorial, we learned to use basic regex concepts & we learned about meta-characters & learned to use those meta-characters to create some...

The post Bash Scripting: Learn to use Basic REGEX (Part 2) appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/bash-scripting-use-regex-intermediate/feed/ 3
Bash Scripting: Learn to use REGEX (Basics) https://linuxtechlab.com/bash-scripting-learn-use-regex-basics/ https://linuxtechlab.com/bash-scripting-learn-use-regex-basics/#comments Thu, 14 Dec 2017 02:51:10 +0000 https://linuxtechlab.com/?p=2806 Regular expressions or regex or regexp are basically strings of character that define a search pattern, they can be used for performing ‘Search’ or ‘Search...

The post Bash Scripting: Learn to use REGEX (Basics) appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/bash-scripting-learn-use-regex-basics/feed/ 3
12- BASH Scripting – I/O Redirection https://linuxtechlab.com/12-bash-scripting-io-redirection/ https://linuxtechlab.com/12-bash-scripting-io-redirection/#respond Tue, 10 Oct 2017 09:14:39 +0000 https://linuxtechlab.com/?p=400 Hello Linux-fanatics, in our previous tutorials we have discussed how we can redirect output of a script to a file or use a file as...

The post 12- BASH Scripting – I/O Redirection appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/12-bash-scripting-io-redirection/feed/ 0
10-Bash Scripting – While loop & Until loop commands https://linuxtechlab.com/10-scripting-while-loop-until-loop/ https://linuxtechlab.com/10-scripting-while-loop-until-loop/#respond Tue, 10 Oct 2017 09:13:58 +0000 https://linuxtechlab.com/?p=294 Hello Linux-fanatics, In our last tutorial we learned to use READ command to take user's Input & also learned to redirect output of a script...

The post 10-Bash Scripting – While loop & Until loop commands appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/10-scripting-while-loop-until-loop/feed/ 0
11- BASH Scripting – Break command & Continue command (Controlling the loops) https://linuxtechlab.com/11-scripting-break-command-continue-controlling-loops/ https://linuxtechlab.com/11-scripting-break-command-continue-controlling-loops/#respond Tue, 10 Oct 2017 09:13:22 +0000 https://linuxtechlab.com/?p=298 Hello Linux-fanatics, In our last tutorial we learned to use while & until loops in our scripts & now in this tutorial we will discuss...

The post 11- BASH Scripting – Break command & Continue command (Controlling the loops) appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/11-scripting-break-command-continue-controlling-loops/feed/ 0
9- Bash Scripting- Taking user’s Input using Read command in Linux https://linuxtechlab.com/9-bash-scripting-user-input-read-command-redirection/ https://linuxtechlab.com/9-bash-scripting-user-input-read-command-redirection/#comments Tue, 10 Oct 2017 09:12:51 +0000 https://linuxtechlab.com/?p=288 In our last tutorial, we had discussed the use of for conditional statement, & now we will discuss how we can take user’s input for...

The post 9- Bash Scripting- Taking user’s Input using Read command in Linux appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/9-bash-scripting-user-input-read-command-redirection/feed/ 4
8- BASH Scripting – FOR Conditional Statement https://linuxtechlab.com/8-bash-scripting-conditional-statement/ https://linuxtechlab.com/8-bash-scripting-conditional-statement/#respond Tue, 10 Oct 2017 09:11:29 +0000 https://linuxtechlab.com/?p=270 Hello, Linux-fanatics, in our earlier tutorial we discussed advanced used of if-then-else conditional statements. In this tutorial, we will discuss for-conditional statement. for statement is...

The post 8- BASH Scripting – FOR Conditional Statement appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/8-bash-scripting-conditional-statement/feed/ 0
7- BASH Scripting- Advanced uses of If-then conditional statement https://linuxtechlab.com/7-bash-scripting-advanced-uses-conditional-statement/ https://linuxtechlab.com/7-bash-scripting-advanced-uses-conditional-statement/#respond Tue, 10 Oct 2017 09:10:56 +0000 https://linuxtechlab.com/?p=258 Welcome Linux –fanatics, this is 7th tutorial in BASH scripting series. In our previous scripting tutorial, we discussed File, String & Numeric comparisons  (also check out...

The post 7- BASH Scripting- Advanced uses of If-then conditional statement appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/7-bash-scripting-advanced-uses-conditional-statement/feed/ 0
6- BASH Scripting – File, Numeric & String comparisons https://linuxtechlab.com/6-scripting-file-comparisons/ https://linuxtechlab.com/6-scripting-file-comparisons/#respond Tue, 10 Oct 2017 09:09:38 +0000 https://linuxtechlab.com/?p=254 HelloLinux Fanatics. In this tutorial, we will be discussing Numeric Comparisons, String Comparison & File Comparisons. (all scripting tutorials are here). Syntax for doing comparisons If...

The post 6- BASH Scripting – File, Numeric & String comparisons appeared first on LinuxTechLab.

]]>
https://linuxtechlab.com/6-scripting-file-comparisons/feed/ 0