pwg
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| pwg [2026/03/30 01:59] – created steve | pwg [2026/03/30 13:15] (current) – steve | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| do | do | ||
| TorF=$(( RANDOM % 2 )) | TorF=$(( RANDOM % 2 )) | ||
| - | First=$(cat ${Self} | sed ' | + | |
| + | # the #WORDS line, then sends the rest of the lines to the shuf | ||
| + | # command that emits a single word. | ||
| + | | ||
| + | # Below is a bash builtin that capitalizes the first letter, so | ||
| + | # word becomes Word. | ||
| String=${First^} | String=${First^} | ||
| while [ ${#String} -le ${Len} ] | while [ ${#String} -le ${Len} ] | ||
| Line 50: | Line 55: | ||
| String+=" | String+=" | ||
| fi | fi | ||
| - | This=$(cat ${Self} | sed ' | + | This=$(sed ' |
| String+=${This^} | String+=${This^} | ||
| done | done | ||
| Line 65: | Line 70: | ||
| grep -E ' | grep -E ' | ||
| </ | </ | ||
| - | On my system, that produces a list of 10756 words, the password ' | + | On my laptop at home, that produces a list of 10756 words, the password ' |
| + | \\ | ||
| + | On a system at work, where I installed a larger dictionary, it's 42245 words! | ||
| + | <code bash> | ||
| + | ## Type ↓ ↓ ↓, User stejon-admin in ~ on lnxv001 ## | ||
| + | ls -Al / | ||
| + | lrwxrwxrwx 1 root root 11 2025-11-18+20: | ||
| + | Last metadata expiration check: 0:02:23 ago on Mon 30 Mar 2026 09:10:52 AM EDT. | ||
| + | words-3.0-39.el9.0.1.noarch : A dictionary of English words for the / | ||
| + | Repo : @System | ||
| + | Matched from: | ||
| + | Filename | ||
| + | </ | ||
pwg.1774835983.txt.gz · Last modified: by steve
