Subject: | |
From: | |
Reply To: | |
Date: | Wed, 19 Aug 1998 09:44:00 -0700 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
Assuming that you really mean 'merging' and not 'appending' the following
command file should do it.
echo input file1,file2 > gpstdin
echo output file3 >> gpstdin
echo key n,m >> gpstdin
echo end >> gpstdin
merge.pub.sys < gpstdin
Where 'n,m' are integers representing the starting position and length of
the 'sort' key of the files.
If you have separate steps to sort each data file you could 'improve' the
process and end up with a merged sorted file by doing the following:
echo input (file1,file2) > gpstdin
echo output file3 >> gpstdin
echo key n,m >> gpstdin
echo end >> gpstdin
sort.pub.sys < gpstdin
Paul Christidis
______________________________ Reply Separator _________________________________
Subject: Merging files
Author: [log in to unmask] at mime
Date: 08/18/98 16:40
Ok, here's probably a simple question, but the tired brain can't come up
with an answer, so:
Within a command file, I need to merge two datafiles together into a third
file. Normally I would use FCOPY to merge the files but can't figure how to
do that in a command file. Thanks for any clever approaches.
Don Inghram
The Christian & Missionary Alliance
Colorado Springs, CO
[log in to unmask]
|
|
|