This website requires JavaScript.
Explore
Help
Register
Sign In
fengyuhetao
/
shell
mirror of
https://github.com/fengyuhetao/shell.git
Watch
1
Star
0
Fork
You've already forked shell
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
642dd00b68
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