mirror of
https://github.com/eddyem/lectures.git
synced 2025-12-06 18:45:18 +03:00
12 lines
220 B
Bash
12 lines
220 B
Bash
#!/bin/bash
|
|
|
|
while [ -n "$1" ];do
|
|
case "$1" in
|
|
-a) echo "Found the -a option" ;;
|
|
-b) echo "Found the -b option" ;;
|
|
-c) echo "Found the -c option" ;;
|
|
*) echo "$1 is not an option" ;;
|
|
esac
|
|
shift
|
|
done
|