The new record that will be inserted by the command is constructed by
using pairs of ‘-f’ and ‘-v’ options. Each pair defines a
field. The order of the parameters is significant.

If no file is specified then the command acts like a filter, getting
the data from the standard input and writing the result in the
standard output.

If the specified file does not exist, it is created.

In addition to the common options described earlier (see Common Options) the program accepts the following options.

‘-t’

‘--type=expr’

The type of the new record. If there is a record set in the input
data matching this type then the new record is added there. Otherwise
a new record set is created. If this parameter is not specified then
the new record is anonymous.

‘-f’

‘--field=name’

Declares the name of a field. This option shall be followed by a
‘-v’.

‘-v’

‘--value=value’

The value of the field being defined.

‘-r’

‘--record=value’

Add the fields of the record in value. This option can be
intermixed with -f ... -v pairs.

Record selection arguments are supported too. If they are used
then recins enters “replacement mode”. Instead of
appending the new record, matched records are replaced by copies of
the provided record. The selection arguments are summarized in the
next table.

‘-n indexes’

‘--number=indexes’

Match the records occupying the given positions in its record set.
indexes must be a comma-separated list of numbers or ranges, the
ranges being two numbers separated with dashes. For example, the
following list denotes the first, the third, the fourth and all
records up to the tenth: -n 0,2,4-9.