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
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
3 楼
or use a loop
【在 D**e 的大作中提到】 : write a sub routine. : : mean
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