here-function.sh

来自「BASH Shell 编程 经典教程 《高级SHELL脚本编程》中文版」· Shell 代码 · 共 33 行

SH
33
字号
#!/bin/bash# here-function.shGetPersonalData (){  read firstname  read lastname  read address  read city   read state   read zipcode} # 这个函数看起来就是一个交互函数, 但是... # 给上边的函数提供输入.GetPersonalData <<RECORD001BozoBozeman2726 Nondescript Dr.BaltimoreMD21226RECORD001echoecho "$firstname $lastname"echo "$address"echo "$city, $state $zipcode"echoexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?