I'm using a Bash script, and I have two input numbers. For simplicity, let's say the first variable is called Start and the second variable is Stop, and each can be a number between 1000 and 2000.
I have files that are arranged via names that match the starting two digits of each number. For example, one file is called:
/path/to/files11, which is a file corresponding to any number between (and including) 1100 to 1199
Now, given Stop and Start, I want to use a loop that sets the proper files to a string in the following manner: If Start = 1923 and Stop = 2267, then I want to do the following (pseudocode):
MyVariable = "/path/to/files19;/path/to/files20;/path/to/files21;/path/to/files22"
but I want to be able to do this for any number in my range.
Any advice on how to select the proper starting and stopping files based on the first two digits and looping over the numbers to get the right string?