Scroll to navigation

RECSEL(1) User Commands RECSEL(1)

NAME

recsel - print records from a recfile

SYNOPSIS

recsel [OPTION]... [-t TYPE] [-j FIELD] [-n INDEXES | -e RECORD_EXPR | -q STR | -m NUM] [-c | (-p|-P) FIELD_EXPR] [FILE]...

DESCRIPTION

Select and print rec data.

print record descriptors along with the matched records.
do not section the result in records with newlines.
sort the output by the specified fields.
group records by the specified fields.
remove duplicated fields in the output records.
decrypt confidential fields with the given password.
print a help message and exit.
show version and exit.

Record selection options:

make strings case-insensitive in selection expressions.
operate on records of the specified type only.
selection expression.
select records with fields containing a string.
select specific records by position, with ranges.
select a given number of random records.
perform an inner join using the specified field.

Output options:

comma-separated list of fields to print for each matching record.
as -p, but print only the values of the selected fields.
as -P, but separate the values with spaces instead of newlines.
print a count of the matching records instead of the records themselves.

Special options:

print the data in sexps instead of rec format.

AUTHOR

Written by Jose E. Marchesi.

REPORTING BUGS

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

COPYRIGHT

Copyright © 2010-2020 Jose E. Marchesi. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

The full documentation for recsel is maintained as a Texinfo manual. If the info and recsel programs are properly installed at your site, the command

info recutils

should give you access to the complete manual.

March 2024 GNU recutils 1.9