RECSEL(1)
β¨ NAME β¨
recsel β bestie, it prints records out of a recfile π
that's literally it, that's the whole job, and it does it flawlessly. It lives in section 1 of the manual, with the rest of the user commands.
π¦ SYNOPSIS π¦
recsel [OPTION]... [-t TYPE] [-j FIELD] [-n INDEXES | -e RECORD_EXPR |
-q STR | -m NUM] [-c | (-p|-P) FIELD_EXPR] [FILE]...
πΈ DESCRIPTION πΈ
Okay so: select and print rec data. That's the vibe. You point it at records, it gives you the ones you asked for. Periodt. β¨
Here's the main options buffet, no notes:
-d,--include-descriptorsβ prints the record descriptors too, right alongside the matched records. Not just the records, the whole glow-up π-C,--collapseβ does NOT section the result into records with newlines. Everything justβ¦ runs together, like a group chat with no replies π«Ά-S,--sort=FIELD,...β sorts the output by the fields you name. Iconic ordering behaviour π-G,--group-by=FIELD,...β groups records by the fields you name. Friendship circles but for records π-U,--uniqβ removes duplicated fields from the output records. Duplicates? Not on our watch π-s,--password=STRβ decrypts confidential fields with the password you hand it. Secret little fields, unlocked π--helpβ prints a help message and dips out.--versionβ shows the version and dips out.
π Record selection options:
This is where you pick which records get the spotlight:
-i,--case-insensitiveβ makes strings case-insensitive in selection expressions.BESTIEandbestieare the same girl now π-t,--type=TYPEβ only messes with records of the type you specify. Stay in your lane (affectionately).-e,--expression=RECORD_EXPRβ the selection expression. This is the main character option ngl.-q,--quick=STRβ selects records that have fields containing a string. Quick, low-effort, gets results β¨-n,--number=NUM,...β selects specific records by position, and yes, with ranges. Like picking people out of a lineup by number π-m,--random=NUMβ selects a given number of random records. Chaos mode, but make it a fixed number π²-j,--join=FIELDβ performs an inner join using the specified field. Matchmaking, but for records π
π Output options:
How the results present themselves. Serve, bestie:
-p,--print=FIELDSβ a comma-separated list of fields to print for each matching record.-P,--print-values=FIELDSβ same as-p, except it prints only the values of the selected fields. Just the vibes, none of the labels.-R,--print-row=FIELDSβ same as-P, but separates the values with spaces instead of newlines. One row, space-separated, tidy β¨-c,--countβ prints a count of the matching records instead of the records themselves. Just the number, no drama π’
π Special options:
--print-sexpsβ prints the data in sexps instead of rec format. Different format, same energy π§
π«Ά AUTHOR π«Ά
Written by Jose E. Marchesi. King behaviour, honestly π
π REPORTING BUGS π
Found something cursed? Tell the devs:
- 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. Fr fr, zero warranty, do not come for them π
π 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. Go read it, it's giving lore πβ¨
And that's the whole page, bestie β this was recsel 1.9, dated April 2022. Slay, stay safe, and always sort your fields ππ
π¦ where this page comes from
- alpine 3.24: recutils-doc 1.9-r2 Β· GPL-3.0-or-later
- debian bookworm: recutils 1.9-2 Β· GPL-3.0-or-later
- fedora 43: recutils 1.9-12.fc43 Β· GPL-3.0-or-later
- fedora 43: recutils 1.9-12.fc43 Β· GPL-3.0-or-later
- fedora 44: recutils 1.9-13.fc44 Β· GPL-3.0-or-later
- fedora 44: recutils 1.9-13.fc44 Β· GPL-3.0-or-later
- nixos 26.05: recutils 1.9
- nixpkgs unstable: recutils 1.9
- opensuse-leap 16.0: gnu-recutils 1.9-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: gnu-recutils 1.9-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: gnu-recutils 1.9-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: gnu-recutils 1.9-bp160.1.13 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms