declarative_configs/laptop/update.sh

17 lines
251 B
Bash
Raw Normal View History

2024-11-02 16:25:29 +01:00
#!/usr/bin/env bash
POSITIONAL_ARGS=()
while getops u:a:f: flag
do
case "${flag}" in
u) username=${OPTARG};;
a) age=${OPTARG};;
f) fullname=${OPTARG};;
esac
done
echo "Username: $username";
echo "Age: $age";
echo "Full Name: $fullname";