recins1
Insert records in a recfile
Usage
recins [OPTION] ...
[-t
TYPE]
[{-n
NUM | -e
RECORD_EXPR | -q
STR | -m
NUM}]
[{(-f
NAME
-v
STR) | -r
RECDATA}] ...
[FILE]
Overview
Insert new records in a rec database.
-
-f, --field=STR -
field name; should be followed by a
-v.
-
-v, --value=STR -
field value; should be preceded by an
-f.
-
-r, --record=STR -
record that will be inserted in the file.
-
--force -
insert the record even if it is violating record restrictions.
-
--no-external -
don't use external descriptors.
-
--no-auto -
don't insert auto generated fields.
-
--verbose -
give a detailed report if the integrity check fails.
-
-s, --password=STR -
encrypt confidential fields with the given password.
-
--help -
print a help message and exit.
-
--version -
show version and exit.
Record selection options:
-
-i, --case-insensitive -
make strings case-insensitive in selection expressions.
-
-t, --type=TYPE -
operate on records of the specified type only.
-
-e, --expression=RECORD_EXPR -
selection expression.
-
-q, --quick=STR -
select records with fields containing a string.
-
-n, --number=NUM,... -
select specific records by position, with ranges.
-
-m, --random=NUM -
select a given number of random records.
If no FILE is specified then the command acts like a filter, getting the data from standard input and writing the result to standard output.
Releases
6 releases since Debian 7 (Wheezy); the text changed 3 times.
-m since Debian 8 (Jessie).
-R until Debian 7 (Wheezy).