avatar
j*c
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
avatar
D*e
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

avatar
b*s
3
or use a loop

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

avatar
i*e
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。