I would like to generate a local array in a shell/bash script that consists of the following elements: JF-1998, JF-1999, JF-2000,... , JF-2011. That is, a string JF- combined with the years from 1998 to 2000.
I would also like to be able to do the reverse: Combine a number with a limited number of strings before that number: JF-1998, RFS-1998, JFI-1998.
Are there simple ways to do so?


arr=( JF-{1998..2011} )?{JF,RFS,JFI}-1998JF,RFS,JFIin a variable? For me it didn't work when in donames=(JF,RFS,JFI)and then{$names}-1998. Also no spaces instead of commas.echo {JF,RFS,JFI}-1998