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中使用函数