Adding a header to a single file output (join all input files together) ?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
dfhtextpipe
Posts: 987
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Adding a header to a single file output (join all input files together) ?

Post by dfhtextpipe »

Hi Simon,

Currently, there seems to be no straightforward means to add a suitable header to a single file output (join all input files together).

We have two Add header filters:
  • Add file header
  • Add restriction header
but neither of these does what's required on its own!

The difficulty is accentuated if you've no idea in advance what the individual filenames will be when they are for a pattern.

What might work would be a new Restrict filter that might be simply called Restrict to first file. Then one could use either of the above filters to add a suitable header such as a set of tab delimited titles for output lines that will be in tab delimited text format.

But then the question arises as to whether the concept should be generalised such that the proposed new filter becomes Restrict to file number[s], with the UI form for the filter the same as those for processing line numbers ?

What do you think of the suggestion?

David
David
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Adding a header to a single file output (join all input files together) ?

Post by DataMystic Support »

Hi David,

This can be easily achieved by putting the Add file header filter AFTER a merge filter.
dfhtextpipe
Posts: 987
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Adding a header to a single file output (join all input files together) ?

Post by dfhtextpipe »

Thanks Simon,

David
David
Post Reply