recdel man page

recdel — remove records from a recfile


recdel [OPTIONS]... [-t TYPE] [-n NUM | -e RECORD_EXPR | -q STR | -m NUM] [FILE]


Remove (or comment out) records from a rec file.

-c, --comment
comment out the matching records instead of deleting them.
delete even in potentially dangerous situations, and if the deletion is violating record restrictions.
don't use external descriptors.
give a detailed report if the integrity check fails.
print a help message and exit.
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.


Written by Jose E. Marchesi.

Reporting Bugs

Report bugs to: bug-recutils@gnu.org
GNU recutils home page: <http://www.gnu.org/software/recutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>


recdel 1.6.90 March 2014