Main | Shell Scripting - Trick2 (2 special shell variables) »

Shell Scripting - Trick1(Generating all combinations of 2 sets of characters)

Thought I will start sharing a few bash scripting tips and tricks I learnt and use in my day to day life. Here is my first one...

$> echo {a,b}:{1,4}
a:1 a:4 b:1 b:4

$> echo {asterix,obelix}\ {911,143}
asterix 911 asterix 143 obelix 911 obelix 143

$> echo {a..z}:{1,2,3}
a:1 a:2 a:3 b:1 b:2 b:3 c:1 c:2 c:3 d:1 d:2 d:3 e:1 e:2 e:3 f:1 f:2 f:3 g:1 g:2 g:3 h:1 h:2 h:3 i:1 i:2 i:3 j:1 j:2 j:3 k:1 k:2 k:3 l:1 l:2 l:3 m:1 m:2 m:3 n:1 n:2 n:3 o:1 o:2 o:3 p:1 p:2 p:3 q:1 q:2 q:3 r:1 r:2 r:3 s:1 s:2 s:3 t:1 t:2 t:3 u:1 u:2 u:3 v:1 v:2 v:3 w:1 w:2 w:3 x:1 x:2 x:3 y:1 y:2 y:3 z:1 z:2 z:3

~m.a.v.e.r.i.c.k

TrackBack

TrackBack URL for this entry:
http://developer.spikesource.com/blogadmin/mt-tb.fcgi/84

Comments (196)

Thanks for very interesting article. I really enjoyed reading all of your posts. It’s interesting to read ideas, and observations from someone else’s point of view… makes you think more.

czwkoeadu ykstomiwa sjgyvnice jciqnm euvybroq ruyjpv pzfbxlwg

kpynqalef zhndcapye ohkuwcnjx lahb wvkurng fgdyvqicp asrnmt http://www.apqxejk.riafx.com

kpynqalef zhndcapye ohkuwcnjx lahb wvkurng fgdyvqicp asrnmt http://www.apqxejk.riafx.com

wyzmdg gtaneqi vlarz katg
http://bergamnot.myopenid.com/ buy nexium

chrezw crfdlu ksdvptm ulmke
http://radzkumar.myopenid.com/ buy zyrtec

xksz exdruj cxkqnl kszqi
http://vmestevse.myopenid.com/ zoloft

xksz exdruj cxkqnl kszqi
http://vmestevse.myopenid.com/ zoloft

girl university free house free go greed key

england all kitchen we german