Archives for: October 2006, 29

10/29/06

Permalink 08:41:43 am, Categories: Linux, 44 words   English (US)

seq

I can't believe in all my syadmin I've never used 'seq'. Pretty cool for bash for loops:

m=`seq -f "host%02g" 1 20`
echo $m
host01 host02 host03 host04 host05 host06 host07 host08
host09 host10 host11 host12 host13 host14 host15 host16
host17 host18 host19 host20

Viraj's Weblog

Donate to keep this site going!

Amount USD $

October 2006
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Search

Categories


Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution