摘要: ${}: 数据“内容”删除,替换;{}: 列表 1. 条件测试: test =~:正则匹配 2. if/then/elif/else/fi 3. case/esac 4. for/do/done 5. while/do/done 采用 i++ 6. break和continue 7. tee 功能: 阅读全文
posted @ 2019-02-11 23:27 douzujun 阅读(450) 评论(0) 推荐(0)
摘要: 1. 自定义变量(仅在当前shell生效) 1.1 定义变量 1.2 输入变量 1.3 位置变量 ($1, $2, $3...${10}....) 1.4 预定义变量 ( $ \$0, \$*, \$@, \$\#, \$\$, \$!, \$? $ ) 1.5 综合 2. 环境变量(在当前shel 阅读全文
posted @ 2019-02-11 14:44 douzujun 阅读(322) 评论(0) 推荐(0)