From 7df31ac375ec84d76b0dd100a2db6fc7f1e4690b Mon Sep 17 00:00:00 2001 From: Suraj Kumar Date: Fri, 12 Jul 2024 23:55:15 +0530 Subject: [PATCH] feat: Added the variable bash script. --- Bash_Scripting/Scripts/Variable.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Bash_Scripting/Scripts/Variable.sh diff --git a/Bash_Scripting/Scripts/Variable.sh b/Bash_Scripting/Scripts/Variable.sh new file mode 100644 index 0000000..eced104 --- /dev/null +++ b/Bash_Scripting/Scripts/Variable.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# This is when we assign value to a variable +hello_message='Hello, world!' + +# If we want to print the current directory along with the message +current_dir=$(pwd) + +# And this is when we are using variable +echo "$hello_message from $curret_dir"