summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-40/man1/recdel.1
blob: 42310577b3e23c368fcad80e48994ae2202f4d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.4.
.TH RECDEL "1" "April 2022" "recdel 1.9" "User Commands"
.SH NAME
recdel \- remove records from a recfile
.SH SYNOPSIS
.B recdel
[\fI\,OPTIONS\/\fR]... [\fI\,-t TYPE\/\fR] [\fI\,-n NUM | -e RECORD_EXPR | -q STR | -m NUM\/\fR] [\fI\,FILE\/\fR]
.SH DESCRIPTION
Remove (or comment out) records from a rec file.
.TP
\fB\-c\fR, \fB\-\-comment\fR
comment out the matching records instead of
deleting them.
.TP
\fB\-\-force\fR
delete even in potentially dangerous situations,
and if the deletion is violating record restrictions.
.TP
\fB\-\-no\-external\fR
don't use external descriptors.
.TP
\fB\-\-verbose\fR
give a detailed report if the integrity check
fails.
.TP
\fB\-\-help\fR
print a help message and exit.
.TP
\fB\-\-version\fR
show version and exit.
.SS "Record selection options:"
.TP
\fB\-i\fR, \fB\-\-case\-insensitive\fR
make strings case\-insensitive in selection
expressions.
.TP
\fB\-t\fR, \fB\-\-type\fR=\fI\,TYPE\/\fR
operate on records of the specified type only.
.TP
\fB\-e\fR, \fB\-\-expression\fR=\fI\,RECORD_EXPR\/\fR
selection expression.
.TP
\fB\-q\fR, \fB\-\-quick\fR=\fI\,STR\/\fR
select records with fields containing a string.
.TP
\fB\-n\fR, \fB\-\-number\fR=\fI\,NUM\/\fR,...
select specific records by position, with ranges.
.TP
\fB\-m\fR, \fB\-\-random\fR=\fI\,NUM\/\fR
select a given number of random records.
.PP
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.
.SH AUTHOR
Written by Jose E. Marchesi.
.SH "REPORTING BUGS"
Report bugs to: bug\-recutils@gnu.org
.br
GNU recutils home page: <https://www.gnu.org/software/recutils/>
.br
General help using GNU software: <http://www.gnu.org/gethelp/>
.SH COPYRIGHT
Copyright \(co 2010\-2020 Jose E. Marchesi.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
The full documentation for
.B recdel
is maintained as a Texinfo manual.  If the
.B info
and
.B recdel
programs are properly installed at your site, the command
.IP
.B info recutils
.PP
should give you access to the complete manual.