RECSEL(1)

πŸ“¦
version 1.9 Β· 4 versions
, in alpine 3.24, debian bookworm, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ 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. BESTIE and bestie are 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:


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 πŸŽ€πŸ’