S A

I found a good solution, here is the command:

ls > file1.txt | cat file1.txt > file2.txt

This will make two similar files containing the list of the current directory.

Regards,...

TheOldWiseKing

??? wrote:
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

Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to