On 9/23/2021 2:23 AM, Ottavio Caruso wrote:
> Hi,
>
> 1) is there a Unix/Linux program that can generate words (not random
> characters) out of a set of characters (say: "5.tpiuongf"). If this
> doesn't exist:
>
> 2) Is it possible to write a script that does the above out of, for
> example, /usr/share/dict/* ?
>
> So, I want to find all lines that contain _only_ one or more of any of
> "5.tpiuongf".
>
> Naively, I started experimenting with [e]grep but I suspect it's not the
> right way.
>
I'm trying to understand what you mean by "word" and the difference
between a "word" and a string of random characters to you.
Can you define "word" in your context and give examples of words that
contain "." and/or "5"?
Do you just want a script that will generate random combinations of a
specific set of characters as opposed to random combinations of all
characters?
If so is there any limit to how long those strings could be or how many
times 1 character can repeat or how many of the target characters the
string has to contain or how close duplicates of each character can be
to each other or requirements to contain some vowels or anything else?
Ed.