5

how to use array variables in shell

view full story
linux-howto

http://www.unix.com – Hi, everyone. I wrote a code like this Code: for f in HB021*   do   program done for f in HB034*   do     program done for f in HB056*     do       program done . . . . . . I know that a loop with array variables is much easier to do this. I searched online, but I can't achieve it. HTML Code: vari[0]=021 vari[1]=034 vari[2]=056 How can I use this array variable in the filename? Thanks in advance! (HowTos)