How-to-Get-Started-with-Shell-Scripting-in-Linux

Symbol is called a bang. Where as /bin/sh & /bin/bash shows that commands to be executed either sh or bash shell. Below are the content of myscript.sh

2022-10-15


How-to-Use-Encrypted-Password-in-Linux-Bash-Shell-Script

use below openssl command in your linux system. $ echo "[email protected]#2" | openssl enc -aes-256-cbc -md sha512 -a -pbkdf2 -iter 100000 \$ echo "[e

2021-06-09


How-to-Use-Break-and-Continue-Statements-in-Shell-Scripts

we will take a look at how to use a break and continue in bash scripts. In bashTrue and Colon Shell Builtin Take a look at the below example. When a c

2021-03-24


How-to-Use-until-Loop-in-Your-Shell-Scripts

Let’s break down the syntax. To start the loop you should use until keyword followed by an expression within single or double braces. The expression s

2021-03-23



Different-Ways-to-Read-File-in-Bash-Script-Using-While-Loop

we will use the cat command here to read the content of the file and pipe it to a while loop. For demonstrationPiping in Linux Let’s break down what w

2021-03-18


How-to-Use-Heredoc-in-Shell-Scripting

psql --username=${UNAME} --password --dbname=${DBNAME}

2021-03-08


Learn-Difference-Between-Sourcing-and-Forking-in-Bash

Sample Script Codes with Sourcing Now run the script again and see. $ bash main.shthis script will try to find the function f1 and variable VAR1 in th

2021-02-18


Learn-Difference-Between-$$-and-$BASHPID-in-Bash

you can understand when I called the script bash creates a child process and run the script. $ ./sample.shyour bash terminal session will also be assi

2021-02-15



How-to-Create-Simple-Shell-Scripts-in-Linux

/usr/bin/perl. The second line is a comment. A comment is a statement that describes what a shell script does and is not executed when the script is r

2020-11-12


BASH-Functions-–-Shell-Scripting

echo $func_result Let’s execute this script with the bash shell. some result Local Variable #var1 is $var1 and var2 is $var2" The above script starts

2019-04-16