由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - perl Q
相关主题
shell programmingperl 新手弱问
A question about command timeHOw to use 'psnup' to output a .ps file?
how to get rid of the ^M in files?[转载] Re: how to delete a file in perl
how to let awk not print?如何在perl中运行c-shell file?
Help about printing through network!批量替换
Perl问题求助 (转载)reverse the lines?
idb problem (转载)CGI之Perl Script一问
50伪币:请教perl代码差错的问题!多谢啦![转载] Perl高手请进
相关话题的讨论汇总
话题: perl话题: print话题: output话题: mean话题: files
进入Unix版参与讨论
1 (共1页)
j*c
发帖数: 97
1
is there any simple way to print the same thing to two different files? I mean
by which I don't need to type everything again in the script. thanks
D**e
发帖数: 10169
2
write a sub routine.

mean

【在 j*c 的大作中提到】
: is there any simple way to print the same thing to two different files? I mean
: by which I don't need to type everything again in the script. thanks

b****s
发帖数: 472
3
or use a loop

【在 D**e 的大作中提到】
: write a sub routine.
:
: mean

i***e
发帖数: 3219
4
open OUTPUT, "|tee file_1 file_2 > /dev/null";
print OUTPUT "things_you_want_to_print";

【在 j*c 的大作中提到】
: is there any simple way to print the same thing to two different files? I mean
: by which I don't need to type everything again in the script. thanks

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] Perl高手请进Help about printing through network!
文件删不掉Perl问题求助 (转载)
Korn shell scriptidb problem (转载)
please help, CGI..50伪币:请教perl代码差错的问题!多谢啦!
shell programmingperl 新手弱问
A question about command timeHOw to use 'psnup' to output a .ps file?
how to get rid of the ^M in files?[转载] Re: how to delete a file in perl
how to let awk not print?如何在perl中运行c-shell file?
相关话题的讨论汇总
话题: perl话题: print话题: output话题: mean话题: files