add if loop

This commit is contained in:
onceupon 2018-05-31 16:07:50 +08:00 committed by GitHub
parent e5e610f319
commit 3842241d25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -784,8 +784,11 @@ while [[ $(pidof perl) ]];do echo f;sleep 10;done && python timetorunpython.py
```
##### If loop
```bash
# if and else loop for string matching
if [[ "$c" == "read" ]]; then outputdir="seq"; else outputdir="write" ; fi
```
if (($j==$u+2))
#(( )) use for arithmetic operation
```