|
>>> 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
|
- Re: [opensuse] (shell question) duplicate standard o... Dominique Leuenberger
- Re: [opensuse] (shell question) duplicate stand... TheOldWiseKing
- Re: [opensuse] (shell question) duplicate s... Prajjwal Devkota
- Re: [opensuse] (shell question) duplicate s... Geoffrey
- Re: [opensuse] (shell question) duplica... Randall R Schulz
- Re: [opensuse] (shell question) dup... Geoffrey
- Re: [opensuse] (shell question... Randall R Schulz
- Re: [opensuse] (shell ques... Geoffrey
- Re: [opensuse] (shell ... Randall R Schulz
- Re: [opensuse] (shell ... Geoffrey
- Re: [opensuse] (shell question) duplica... TheOldWiseKing
