On Wed, May 16, 2001 at 01:30:03PM -0500, Timothy Wilson wrote: > I need to concatenate a series of text files into one large file. Knowing > just enough to be dangerous, I ended up with the following test: > > wilsont at galileo:~/tmp$ cat file1 > A > wilsont at galileo:~/tmp$ cat file2 > B > wilsont at galileo:~/tmp$ cat file3 > C > wilsont at galileo:~/tmp$ cat file1 >> cat file2 >> cat file3 > newfile > wilsont at galileo:~/tmp$ cat newfile > A > B > C > wilsont at galileo:~/tmp$ > > This is exactly what I want, but the redirection on the command line doesn't > make sense to me. In fact, the order seems exactly opposite from what it > seems like it should be. > > Can anyone elighten me? That's strange. Your shell is bash, right? [t]csh gives me an Ambiguous redirect error when I try it, but bash and sh give the same results you got. Also, I get the same results with cat file1 > cat file2 > cat file3 > newfile -- Jim Crumley | crumley at fields.space.umn.edu | Work: 612 624-6804 or -0378 |