help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to print all 3 char length string made whitespace {0..9} {a..z}


From: Mike Jonkmans
Subject: Re: how to print all 3 char length string made whitespace {0..9} {a..z}
Date: Sun, 2 Aug 2020 23:10:39 +0200

On Sun, Aug 02, 2020 at 03:43:05PM -0500, Peng Yu wrote:
> 
> As I said, I just want to generate all three character strings with
> space, a..z, and 0..9 in bash. Otherwise, I will have to use a
> different programming lang which I don't want to. I don't understand
> why you ask this question.
> 
> On 8/2/20, Eli Schwartz <eschwartz@archlinux.org> wrote:
> > On 8/2/20 3:44 PM, Peng Yu wrote:
> >>
> >> Is there a good way to generate all three-character strings made of
> >> whitespace, {0..9} and {a..z}? Thanks.
> >
> > You can always use multiple brace expansions together:
> >
> > $ printf "<%s>\n" {{a..z}," ",{0..9}}
> >
> > Though I'd first want to ask what you're really trying to do...
> > (I know, I know, you'll never tell us...)


Are you lookiung for this?
        echo {{a..z},\ ,{0..9}}{{a..z},\ ,{0..9}}{{a..z},\ ,{0..9}}

I don't want to know why.
Curiosity killed the cat.

Regards, Mike Jonkmans



reply via email to

[Prev in Thread] Current Thread [Next in Thread]