This website requires JavaScript.
Explore
Help
Register
Sign In
dunwu
/
linux-tutorial
mirror of
https://github.com/dunwu/linux-tutorial.git
Watch
1
Star
0
Fork
You've already forked linux-tutorial
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
71bcca24c5
linux-tutorial
/
codes
/
shell
/
示例脚本
/
逻辑控制
/
在for语句中使用多个变量.sh
8 lines
94 B
Bash
Raw
Blame
History
#!/bin/bash
# multiple variables
for
(
(
a
=
1,
b
=
10
;
a<
=
10
;
a++,b--
)
)
do
echo
"
$a
-
$b
"
done
Reference in New Issue
View Git Blame
Copy Permalink