# shell **Repository Path**: bobbytao/shell ## Basic Information - **Project Name**: shell - **Description**: No description available - **Primary Language**: Shell - **License**: MulanPSL-1.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 变量 ***环境变量、本地变量*** ## 函数 ## 数据类型 ## 条件分支 ``` if [ -f ~/.bashrc ]; then echo "xxxx" elif [ -d ~/.vimrc ]; then echo "xxxxxxxxxxxx" else printf "unknow\n" fi ``` ## 循环分支 ***while do done*** ***for do done*** ## case分支 ```sh case var in arg1|arg2|...) : ;; #do it arg3|arg4|...) : ;; #do sth esac ``` ## options: -n:check scripts -v:执行且打印 -x:设定调试范围,如: #! /bin/bash -x set -x echo $0 echo $1 set +x ***执行结果将显示命令与结果*** ## 代码统计: ![code](https://gitee.com/windyGOlife/shell/raw/master/configer_centos/code.png)