Skip to content

Commit

Permalink
feat: Added the variable bash script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-kumar00 committed Jul 12, 2024
1 parent 1b43757 commit 7df31ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Bash_Scripting/Scripts/Variable.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 7df31ac

Please sign in to comment.