This commit is contained in:
Neil 2021-06-12 18:48:59 -07:00
parent a564c45d9f
commit 6fe51ebf21

View File

@ -9,25 +9,24 @@ Searches through input and outputs sequences that are repeated.
Because it's intended for text files, control characters are
ignored.
FindPatterns [filename] [-b] [-e] [-i] [-o] [-v] [-m<n>] [-l<n>] [-g<n>] [-?|h]
`FindPatterns [filename] [-b] [-e] [-i] [-o] [-v] [-m<n>] [-l<n>] [-g<n>] [-?|h]`
<table>
<tr><td>filename</td><td>Attempt to read input from this file, otherwise uses stdin.</td></tr>
<tr><td>`filename`</td><td>Attempt to read input from this file, otherwise uses stdin.</td></tr>
<tr><td>`-b`</td><td>Keep a buffer to count repeated matches (`!o -> b`.)</td></tr>
<tr><td>`-e`</td><td>Echo input.</td></tr>
<tr><td>`-i`</td><td>Case-insensitive (not implemented.)</td></tr>
<tr><td>`-n`</td><td>Don't display matches at the end.</td></tr>
<tr><td>`-o`</td><td>Output matches immediately as they are found.</td></tr>
<tr><td>`-s`</td><td>Silent mode - plain output with no extra characters.</td></tr>
<tr><td>`-v`</td><td>Verbose comments while outputting.</td></tr>
<tr><td>`-g<n>`</td><td>Set memory buffer granularity to the closest power of two lower than `<n>` bytes (default 1024.)</td></tr>
<tr><td>`-l<n>`</td><td>Set match limit to `<n>` matches (default 4096; 0 -> no limit.)</td></tr>
<tr><td>`-m<n>`</td><td>Set minimum match length to <n> symbols (default 3).</td></tr>
<tr><td>`-?` or `-h`</td><td>Display this help screen and exit.</td></tr>
</table>
|-|-|
| -b | Keep a buffer to count repeated matches (!o -> b.) |
| -e | Echo input. |
| -i | Case-insensitive (not implemented.) |
| -n | Don't display matches at the end. |
| -o | Output matches immediately as they are found. |
| -s | Silent mode - plain output with no extra characters. |
| -v | Verbose comments while outputting. |
| -g<n> | Set memory buffer granularity to the closest power of two lower than <n> bytes (default 1024.) |
| -l<n> | Set match limit to <n> matches (default 4096; 0 -> no limit.) |
| -m<n> | Set minimum match length to <n> symbols (default 3). |
| -?\|h | Display this help screen and exit. |
Adding -<s>- will turn off switch <s>.
Adding `-<s>-` will turn off switch <s>.
Also included is a simple KillSpam email client that takes the patterns
generated (from FindPatterns) and eliminates all the emails that have