Homework 03: zipcode.sh

This commit is contained in:
Owen Dorweiler 2025-02-08 04:01:51 -05:00 • committed by Peter Bui
commit 690be1e029

View file

@ -40,14 +40,14 @@ while [ $# -gt 0 ]; do
case $1 in
-s)
shift
STATE=()
STATE=""
while [ $# -gt 0 ] && [ "${1#-}" = "$1" ]; do
STATE+=("$1")
STATE+="$1"
shift
done
STATE="${STATE[*]}"
STATE="${STATE// /%20}"
STATE=${STATE[*]}
STATE=${STATE// /%20}
;;
-c)
shift