14 Nov
2006
14 Nov
'06
14:56
On Tuesday 14 November 2006 06:48, Geoffrey wrote:
TheOldWiseKing wrote:
S A
I found a good solution, here is the command:
ls > file1.txt | cat file1.txt > file2.txt
Not so wise OldWiseKing. :)
I don't know what the pipe is for, but I don't think that will work. file2.txt will likely end up empty.
No, it won't. When cat is given command-line file name arguments it ignores the standard input. But this is a poor construction. Others have given the information the OP needs, which is to learn about the "tee" command.
...
Randall Schulz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org