20 lines
246 B
Bash
Executable File
20 lines
246 B
Bash
Executable File
|
|
#!/bin/bash
|
|
##Daca numarul total de argumente are mai putin de 2 argumente:
|
|
if [ $# -lt 2 ]; then
|
|
echo "Usage: ./script.sh <first_name> <last_name>"
|
|
exit 1
|
|
fi
|
|
|
|
first_name="$1"
|
|
last_name="$2"
|
|
|
|
echo "Hello, $first_name $last_name!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|