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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
