Something like this will work.
perl -pe "" foo.txt bar.txt > c:\temp\baz.txt
It's disappointing that
perl -p foo.txt bar.txt > c:\temp\baz.txt
doesn't work. It thinks foo.txt is the perl script to execute.
-----Original Message-----
From: Peter Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 2:34 PM
To: Drain, Frank; Beginners (E-mail)
Subject: Re: cat a file
At 04:27 PM 4/19/01 -0400, Drain, Frank wrote:
>Hello,
>
>I am very new to perl. I have two pst (personal folder files) that I want
>to combine into one.
>
>I know how to use cat in Linux. How do do this
>same operation in perl under windows?
# cat. Usage, e.g. perl cat .pl file1 file2 >file3
while (<>) { print }
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com