Thanks Tzafrir, the answer is using paste:
paste [...] | awk

and making the awk script treat odd and even (for 2 files) differently.
actually that may be generated automagically for more files ...

Muli Ben-Yehuda wrote:

On Wed, Nov 13, 2002 at 04:31:48PM +0200, Guy Baruch wrote:

Can you filter them one at a time, or do you need to cross reference
them?
no, filtering one at a time is simply calling:

awk [options] file1 file2 ...

which is equivalent to calling:

cat file1 file2 ... | awk [options]

this I would have found myself with man awk .

Could you define what you mean by 'interlaced' here? are the files
cross referential?

interlaced as in paste. Taking a line from each file in order.

The files are not cross referential, However they have identical formats and
I need to rearange the information of several files into a new file.

(to exchange parameter<-->variable in some numeric data)

--
-- regards

+-----------------------------------------------------------------------
+ Guy Baruch , Plasma Laboratory, Weizmann Institue.
+ mailto:guybar@;plasma-gate.weizmann.ac.il
+ phone: 972-8-934-2211
+-----------------------------------------------------------------------

They hang the man and flog the woman
That steal the goose from off the common,
But let the greater villain loose
That steals the common from the goose.

-- English folk poem, circa 1764
http://bostonreview.mit.edu/BR27.3/bollier.html




=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to