Files
Bash_Scripts/script.sh
2025-12-14 19:49:15 +00:00

47 lines
443 B
Bash
Executable File

#!/bin/bash
##1
if [ -z "$1" ]; then
echo "Usage: ./script.sh <name>"
exit 1
fi
name="$1"
echo "Hello, $name!"
echo "Welcome to DevOps Bash scripting."
##2
if [-z "$1"]; then
echo "Usage: ./script.sh <name>"
exit 1
fi
name="$1"
if ["$name == "Liana"]; then
echo "Hello $name! You ar awesome!"
else
echo "Hello, $name!"
fi
exit 0
name="Liana"
course="DevOps Bash"
echo "Hello, $name!"
echo "You are learning $course"