This commit is contained in:
onceupon 2017-01-05 15:44:41 +08:00 committed by GitHub
parent 35663d37df
commit 51ed9e01c9

View File

@ -713,6 +713,16 @@ if [[$age >21]]
```
//[[ ]] use for comparison
#####test if file exist
```bash
if [ -e $DF ]
then
echo -e “file exists!|”
fi
```
#####for loop
```bash