2021-11-11 20:44:40 +03:00

12 lines
220 B
Bash
Executable File

#!/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