try this months=( jan feb mar ) source: http://www.tech-recipes.com/rx/635/bash-shell-script-declaringcreating-arrays/
On Sun, Sep 27, 2009 at 11:17 AM, Ashish Sheth < [email protected]> wrote: > Hello friends, > > i want to make an array of months and then work with the entries in a loop. > can somebody please tell me how to do it? > > trying with months="jan feb mar" is only taking all of them together. > it is so easy with perl but difficult with shell why so ? > > -- > cheers > Ashish > > > Add whatever you love to the Yahoo! India homepage. Try now! > http://in.yahoo.com/trynew > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

