sort-pw-cfg(1)
π sort-pw-cfg(1) β the manual page, but make it make sense π
okay so real talk, this is the man page for sort-pw-cfg, and yes bestie the manual name is literally right there in the title, we're not hiding it. let's get into it β¨
β¨ NAME β¨
sort-pw-cfg β sort/merge password config file. that's the whole vibe. it sorts. it merges. it's giving organizational queen π
π¦ SYNOPSIS π¦
sort-pw-cfg [-flags] [-flag [value]] [--option-name[[=| ]value]] [ <cfg-
file> ...]
so here's the deal about the operands (the files this program operates on, iykyk): you can name them right there on the command line, or you can pipe them in through standard input, one per line π«Ά. and when you do the stdin thing, leading and trailing white space gets stripped, and blank lines are straight up ignored, no cap.
β οΈ heads up: standard input may not be a terminal. so don't just run it raw and expect it to read your mind π
πΈ DESCRIPTION πΈ
bestie. this program will sort (and merge) the per-domain password attributes. that's its whole personality.
if there are duplicate entries? the last entry seen survives. periodt. the result gets sorted by password id hash code and option name. so like, any file containing more recent entries should appear last β that's the rule π₯.
and ngl, here's the messy part: if you've updated two different password ids in two different password configuration files without having merged them, you may have a merge problem π. and there's no magic fix for that β you will need to try to remember what you did. good luck, soldier π«‘
the "header" portion of the config file (the seeds and the <program...> marker) is taken from the first config file listed and ignored in the remaining files. like, first one wins, everyone else's header is just noise π
example usage? scroll down, it's in the example section below β¨
this program will perform its function for every file named on the command line or every file named in a list read from stdin. and lowkey important: the arguments or input names must be pre-existing files β it's not gonna manifest them for you π§
oh and the input list may contain comments! which are blank lines, or lines beginning with a # character. very demure, very mindful π
π OPTIONS π
-ofile,--output=file β send result to this file. normally, the first named file gets rewritten with the entries ordered by the hash code with duplicates removed. use this option to redirect output to the named file instead π-d,--defaultβ select default config file for first input file. so instead of starting with the first operand (or the first file in the standard input file list), it starts processing password id's with the contents of the standard configuration file. the additional files will then override or augment this file. main character energy fr π-h,--helpβ Display usage information and exit. the classic. we love a helpful icon π-M,--more-helpβ Pass the extended usage information through a pager. for when you want the full lore π-v [{v|c|n --version [{v|c|n}]}],--versionβ Output version of program and exit. the default mode isv, a simple version. thecmode will print copyright information, andnwill print the full copyright notice. pick your fighter π₯
π₯ EXIT STATUS π₯
one of the following exit values will be returned, and yes bestie, memorize these, they're your emotional support numbers:
0(EXIT_SUCCESS) β Successful program execution. slay π1(EXIT_INVALID) β the option/argument configuration is invalid π2(EXIT_NO_MEM) β insufficient memory π3(EXIT_BAD_USER) β no password entry for current user π4(EXIT_HOMELESS) β home directory could not be found ποΈ5(EXIT_PERM) β config file improperly protected π6(EXIT_NO_CONFIG) β config file missing π«₯7(EXIT_BAD_CONFIG) β cannot update config file π€8(EXIT_NO_SEED) β no seeds were specified in the config file π±9(EXIT_BAD_SEED) β The seed value was invalid π10(EXIT_BAD_SELECT_CHARS) β the list of characters for the--select-charsoption is bad π11(EXIT_NO_PWID) β no password id was specified π«16(EXIT_CODING_ERROR) β There is a coding error that should be reported π70(EX_SOFTWARE) βliboptshad an internal operational error. Please report it toautogen-users@lists.sourceforge.net. Thank you. π«Ά
π AUTHORS π
Written by Bruce Korb. we stan a legend πβ
π§ NOTES π§
This manual page was AutoGen-erated from the sort-pw-cfg option definitions. so like, it wasn't even hand-written, the machine did that. iconic behavior honestly π€β¨
and that's the whole page bestie!! π this was version 2.7.4, dated 2020-09-30 β so yes, it's got a little vintage energy, but it still ate and left no crumbs ππ¦ go forth and sort those password configs, you've got this π
π
π¦ where this page comes from
- nixos 26.05: gnu-pw-mgr 2.7.4
- nixpkgs unstable: gnu-pw-mgr 2.7.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms