Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bash alphanumeric list generating

I need print something like this:

a
b
c
.
.
.
z
A
B
C
.
.
.
Z
0
1
2
.
.
.
9

with this is can be done for separately but.

 for f in {a..z}; 
   do        
   echo $f;   
done
 for f in {A..Z}; 
   do        
   echo $f;   
done

 for f in {0..9}; 
   do        
   echo $f;   
done

but how can i do it in one for? Maybe something like this ? But is not working.

 for f in {a..z:A..Z:1..9}; 
   do        
   echo $f;   
done
like image 568
fpilee Avatar asked Dec 16 '22 17:12

fpilee


1 Answers

for f in {a..z} {A..Z} {0..9}; do
    echo "$f"
done
like image 176
melpomene Avatar answered Jan 28 '23 15:01

melpomene