>>> Reply on 14-11-2006 10:13:02 <<<> Hello. I already learnt that:
>
> $ ls > result.txt
> will redirect the output of ls(1) to result.txt
>
> Now what if I wish to have the output of ls (1) redirect to two files a
> the same time?
>
> $ ls > result1.txt > result2.txt
>
> Above command only redirect the result to result2.txt
>
Hi,
 
I think the command 'tee' might be an interesting case fir you.
 
Try
ls | tee result1.txt result2.txt
or, if you don't want screen output, you could do
ls | tee result1.txt > result2.txt
 
Regards,
Dominique

Reply via email to