运维网's Archiver
论坛
›
Shell/Powershell
› shell中使用函数
shirobert
发表于 2018-8-21 13:40:11
shell中使用函数
#!/bin/bash
# define func
hello()
{
echo -n "hello $1. "
credit
}
credit()
{
echo "Do you need to apply for a credit card ?"
}
页:
[1]
查看完整版本:
shell中使用函数