Quote:
Originally Posted by
ocbit
The code I provided works perfectly fine as I posted it.
Sorry, impossible. Inside
awk, TXT and XML are uninitialized variables, thus empty, and can't be used neither as a index into an array nor as a reasonable assignment value. Plus, with the leading $-sign, their contents will be interpreted as a field identifier and MUST be numeric. Again, leading nowhere.
Outside, they are just filenames, aren't they, so nothing to replace anything?
Quote:
Why would I post it and say it works if it doesn't?
Not sure...?
For your original question, place a
print just before and just after the replacement statements to see the difference.