I have managed to create two bash variables, both of which are lines of strings.
$oldfilenames which looks like
path/old-filename-1.txt
path/old-filename-2.txt
path/old-filename-3.txt
path/old-filename-4.txt
...
and
$newfilenames which looks like
new-filename-1.txt
new-filename-2.txt
new-filename-3.txt
new-filename-4.txt
...
and I would like to generate symbolic links in my directory using these two variables.
Both variables are of equal length. I am hoping to do something like this:
for x in $oldfilenames; y in $newfilenames; do
ln -s $x $y
done
I think that is not the correct syntax and I can't get it to work.