标签:one done bash pat linux exp bsp path expr
#!/bin/bash for((i=1;i<=100;i++)); do echo $(expr $i \* 3 + 1); done
#!/bin/bash for i in $(seq 1 100) do echo $(expr $i \* 3 + 1); done
#!/bin/bash for i in {1..100} do echo $(expr $i \* 3 + 1); done
#!/bin/bash list="where are you from" for i in $list; do echo "$i is ok"; done
#!/bin/bash for i in f1 f2 f3 ; do echo $i is ok ; done
#!/bin/bash for file in /var/*; do echo $file is file path \! ; done
标签:one done bash pat linux exp bsp path expr
原文地址:https://www.cnblogs.com/tingxin/p/12932579.html