摘要: 1. 在shell文件内部定义函数并引用: [~/shell/function]# cat factorial.sh #!/bin/bash function factorial { factorial=1 for (( i=1;i <= $1;i++ )) do factorial=$[ $fac 阅读全文
posted @ 2020-02-15 09:43 hexel 阅读(706) 评论(0) 推荐(0) 编辑