#!/bin/bash # here-function.sh GetPersonalData () { read firstname read lastname read address read city read state read zipcode } # This certainly looks like an interactive function, but... # Supply input to the above function. GetPersonalData <<RECORD001 Bozo Bozeman 2726 Nondescript Dr. Baltimore MD 21226 RECORD001 echo echo "$firstname $lastname" echo "$address" echo "$city, $state $zipcode" echo exit 0