okai... question, again
(still bash)
How do I make variables that I change IN a loop also change OUTSIDE it?
I am trying to rename files, but they only "pretend to be" changed in the loop, yet really remain as they were -,-
I've changed my script so many times I just had to delete it
nothing made sense
what I DO know is that
if i have:
string="abcægi"
string=${string//æ/A} / for one match, // if there can be severeal
would change the string to
abcAgi ...replacing the unwanted letter
but as I have to use a for loop
for file in *
it looks like the changes remain local (only change while in loop, and not in the actual file names)
sooo, any bright ideas?