2002-06-03 14:36:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# here-function.sh
|
|
|
|
|
|
|
|
GetPersonalData ()
|
|
|
|
{
|
|
|
|
read firstname
|
|
|
|
read lastname
|
|
|
|
read address
|
|
|
|
read city
|
|
|
|
read state
|
|
|
|
read zipcode
|
2012-11-27 14:56:18 +00:00
|
|
|
} # This certainly appears to be an interactive function, but . . .
|
2002-06-03 14:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Supply input to the above function.
|
|
|
|
GetPersonalData <<RECORD001
|
|
|
|
Bozo
|
|
|
|
Bozeman
|
|
|
|
2726 Nondescript Dr.
|
2012-11-27 14:56:18 +00:00
|
|
|
Bozeman
|
|
|
|
MT
|
2002-06-03 14:36:49 +00:00
|
|
|
21226
|
|
|
|
RECORD001
|
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "$firstname $lastname"
|
|
|
|
echo "$address"
|
|
|
|
echo "$city, $state $zipcode"
|
|
|
|
echo
|
|
|
|
|
|
|
|
exit 0
|