#!/bin/bash # moo-funct-play.sh # first versions of Bash functions moo5 and custom_moo, # followed by example calls of these functions # # by: Sharon Tuttle # last modified: 2022-11-16 # function: moo5 # expects nothing, and prints 5 moos to the screen with # a line of stars before and after them moo5() { echo "*******************" echo "moo moo moo moo moo" echo "*******************" } # function: custom_moo # expects a name, and prints to the screen a personalized # moo custom_moo() { echo "Dear $1, MOO!" } # now trying these functions out! echo "script action STARTS here" echo "about to call moo5" moo5 echo "calling moo5 again" moo5 echo "script action ENDS here" echo "=================" echo "about to moo at Sharon" custom_moo Sharon echo "about to moo at David" custom_moo David