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
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
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
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
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
psql --username=${UNAME} --password --dbname=${DBNAME}
2021-03-08
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
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
/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
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