#!/bin/bashFRIEND="world"HELP="
Usage: hello [OPTION]...
Greets the given friend. Defaults to \"$FRIEND\"
-f, --friend <name> specify friend to greet
-h, --help print this help text
"while["$#"-gt 0 ];docase"$1"in
-f | --friend)FRIEND="$2"shift 1;;*)echo"Unrecognized argument ${1#*=}"print-help"$HELP"exit 1;;esacshiftdoneecho"Hello, $FRIEND!"