用户名: 密码: 忘记密码? 注册
收藏此问题 发表新评论

perl copy find命令问题

#!/usr/bin/perl
my $find=`find / -name test.txt`;
#比如我找到这个文件在/usr/test.txt,那我执行下面这这条命令怎么不能copy到tmp
system("cp $find /tmp");
#但是我这样又是可以的
system("cp /usr/test.txt /tmp");
昵称: mitmax  时间: 2010-07-13 15:45:00
print一下你find的内容
昵称: yybmsrs  时间: 2010-07-13 16:35:00


QUOTE:
print一下你find的内容
yybmsrs 发表于 2010-07-13 16:35




Suse:/usr/local/shell # ./find.pl
/root/test/tqrelease/worker/online_report_worker/online_report_config
昵称: mitmax  时间: 2010-07-13 16:45:00
发表评论
昵称:
内容:
验证: