mirror of https://github.com/tLDP/LDP
33 lines
440 B
Bash
33 lines
440 B
Bash
#!/bin/bash
|
|
# here-function.sh
|
|
|
|
GetPersonalData ()
|
|
{
|
|
read firstname
|
|
read lastname
|
|
read address
|
|
read city
|
|
read state
|
|
read zipcode
|
|
} # This certainly appears to be an interactive function, but . . .
|
|
|
|
|
|
# Supply input to the above function.
|
|
GetPersonalData <<RECORD001
|
|
Bozo
|
|
Bozeman
|
|
2726 Nondescript Dr.
|
|
Bozeman
|
|
MT
|
|
21226
|
|
RECORD001
|
|
|
|
|
|
echo
|
|
echo "$firstname $lastname"
|
|
echo "$address"
|
|
echo "$city, $state $zipcode"
|
|
echo
|
|
|
|
exit 0
|