shell的循
环主要有 3
种, for, while, until
shell的分支判断主要有2种,if,case
一,for循环
- #!/bin/bash
- for file in $(ls /tmp/test/mytest |grep sh) //for in格式是shell for的基本格式,根js的for in