[Bit OT] Bash Script Help

Ulf Rompe Ulf.Rompe at icem.com
Mon Nov 10 06:43:49 UTC 2008


Am Freitag, den 07.11.2008, 13:04 -0500 schrieb Rashkae:
> > One directory called '0-9' and 26 more directories - one for each
> letter in
> > the alphabet - 27 directories in all.
> > 
> 
> mkdir 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z

Or just use some bash-fu:

mkdir {0..9} {a..z}

Oh, and I just notice that the "0-9" should be a single dir, thus:

mkdir 0-9 {a..z}


[x] ulf
-- 
Der Mensch ist immer noch der beste Computer. (John F. Kennedy)





More information about the ubuntu-users mailing list