generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Keshav Priyadarshi <[email protected]>
- Loading branch information
1 parent
b235775
commit a2667c1
Showing
4 changed files
with
440 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Define a global variable | ||
GREETING="Hello" | ||
|
||
# Define a function to greet the user | ||
greet_user() { | ||
local username=$1 | ||
echo "$GREETING, $username! Welcome to the Bash scripting tutorial." | ||
} | ||
|
||
# Call the function with an argument | ||
greet_user "Alice" |
Oops, something went wrong.