for i in ls /tmp/test
do
doing something
done
这句话for i in ls /tmp/test,如何修改?有错误。
for i in ls /tmp/test如何修改?
-
- 帖子: 104
- 注册时间: 2016-07-08 17:43
- 系统: debian8
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: for i in ls /tmp/test如何修改?
whaha 写了:这句话for i in ls /tmp/test,如何修改?有错误。
代码: 全选
for i in `ls /tmp/test`
https://www.gnu.org/software/bash/manua ... ution.html
http://www.tldp.org/LDP/abs/html/commandsub.html
http://unix.stackexchange.com/questions ... n-commands
http://unix.stackexchange.com/questions ... g-backtick
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
- astolia
- 论坛版主
- 帖子: 6444
- 注册时间: 2008-09-18 13:11
Re: for i in ls /tmp/test如何修改?
for i in /tmp/test/*