AnsweredAssumed Answered

vrf Catonate 2 files

Question asked by VRFuser on Oct 31, 2007
"Michael Asbery" <michael.asbery@nrl.navy.mil> wrote:
> Dave,
>
> If you are dealing with text files, use the execute program with the
> following
> commands:
>
>
> Type file1.txt file2.txt > file3.txt    // concats file1 after file2 into
> file3
> Type file2.txt >> file1.txt             // append file2 to file1
> Type file*.txt > concat.txt             // put all files file1, file2,.. into
> concat.txt

Better yet-- just use good old "copy". That way it doesn't matter what sort of contents the file has.

copy file1+file2 file3    concats file1 and file2 into file3
copy file1+file2 file1    append file2 to file1
copy file* concat         put all files file* into single file concat

In either case by using native Windows shell commands the concatentaion is very fast and very robust. "Execute program"
is wonderfully useful tool.

Stan


--------------------------------------------------------------------------
Stan Bischof  Agilent Technologies  707-577-3994  stan_bischof@agilent.com
--------------------------------------------------------------------------

---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

Outcomes