[root]# cat test.sh touch /name1 /name2 /name3 for f in `ls /name*`; do name=$f done echo $name [root]# ./test.sh /name3 |
[root]# cat test.sh touch "name 1" "name 2" "name 3" for f in "`ls -1 name*`"; do echo "$f" done [root]# ./test.sh name 1 name 2 name 3 |
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |