Tabular data handling toolkit  


Manual page for fldmap(1)(TDH)

fldmap(1) - map fields by name from one file to another



SYNOPSIS

fldmap [-H] sourcefile destfile


DESCRIPTION

sourcefile and destfile are two tabular ascii files with field name headers. This utility will write the contents of sourcefile, reformatted to the field format of destfile, to stdout. This remapping is based on field names. Both files must have a field name header.

A warning will be issued for any field found in sourcefile that is not in destfile, and such fields will not be present in the result. Destfile fields not present in sourcefile will be filled in as nulls (the = character by default but can be set to another symbol in your config file ).


OPTION

-H
Include destfile's field name header in the output.


EXAMPLE

Suppose file1 looks like this:
id balance
001 4504
002 9403
and file2 looks like this:
id lastname firstname balance
101 Smith George 58300
103 Jones Jeff 4792
If we issue the command: fldmap file1 file2 we will get the following on standard output:
001 = = 4504
002 = = 9403
If we had used -H we would have gotten:
id lastname firstname balance
001 = = 4504
002 = = 9403






Tabular data handling toolkit 
Copyright Steve Grubb


Markup created by unroff 1.0,    September 19, 2003.