1RECSEL(1) User Commands RECSEL(1)
2
3
4
6 recsel - print records from a recfile
7
9 recsel [OPTION]... [-t TYPE] [-j FIELD] [-n INDEXES | -e RECORD_EXPR |
10 -q STR | -m NUM] [-c | (-p|-P) FIELD_EXPR] [FILE]...
11
13 Select and print rec data.
14
15 -d, --include-descriptors
16 print record descriptors along with the matched records.
17
18 -C, --collapse
19 do not section the result in records with newlines.
20
21 -S, --sort=FIELD,...
22 sort the output by the specified fields.
23
24 -G, --group-by=FIELD,...
25 group records by the specified fields.
26
27 -U, --uniq
28 remove duplicated fields in the output records.
29
30 -s, --password=STR
31 decrypt confidential fields with the given password.
32
33 --help print a help message and exit.
34
35 --version
36 show version and exit.
37
38 Record selection options:
39 -i, --case-insensitive
40 make strings case-insensitive in selection expressions.
41
42 -t, --type=TYPE
43 operate on records of the specified type only.
44
45 -e, --expression=RECORD_EXPR
46 selection expression.
47
48 -q, --quick=STR
49 select records with fields containing a string.
50
51 -n, --number=NUM,...
52 select specific records by position, with ranges.
53
54 -m, --random=NUM
55 select a given number of random records.
56
57 -j, --join=FIELD
58 perform an inner join using the specified field.
59
60 Output options:
61 -p, --print=FIELDS
62 comma-separated list of fields to print for each matching
63 record.
64
65 -P, --print-values=FIELDS
66 as -p, but print only the values of the selected fields.
67
68 -R, --print-row=FIELDS
69 as -P, but separate the values with spaces instead of newlines.
70
71 -c, --count
72 print a count of the matching records instead of the records
73 themselves.
74
75 Special options:
76 --print-sexps
77 print the data in sexps instead of rec format.
78
80 Written by Jose E. Marchesi.
81
83 Report bugs to: bug-recutils@gnu.org
84 GNU recutils home page: <https://www.gnu.org/software/recutils/>
85 General help using GNU software: <http://www.gnu.org/gethelp/>
86
88 Copyright © 2010-2020 Jose E. Marchesi. License GPLv3+: GNU GPL ver‐
89 sion 3 or later <http://gnu.org/licenses/gpl.html>.
90 This is free software: you are free to change and redistribute it.
91 There is NO WARRANTY, to the extent permitted by law.
92
94 The full documentation for recsel is maintained as a Texinfo manual.
95 If the info and recsel programs are properly installed at your site,
96 the command
97
98 info recutils
99
100 should give you access to the complete manual.
101
102
103
104recsel 1.9 April 2022 RECSEL(1)