for i in ls /tmp/test
do
doing something
done
这句话for i in ls /tmp/test,如何修改?有错误。
for i in ls /tmp/test如何修改?
- 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 用户