Well I didnt see a forum for bash scripting, so I figured this was the closests to it. I've been using the this string for awhile now without problems until today.
Now that echo's it perfectly
But when I go to use it in my script, It gets all funky, I have narrowed it down to this script. When you add spaces at the end of the variable inside the quotes, it does this.
For some reason, how ever many spaces or charectors I put after the variable, it places it at the begining, another example is:
This is the first time this has ever happened, I'm stumped.
Common Answers from other people trying to help:
Dont put the var in quotes while echoing - I have to do this becuase its echoing the variable into another script.
Try to pass the variable to another script - I get the same result.
Use awk in the line - I get the same result.
Include the INI file in the script - Some of the other variables have spaces and do not have quotes (For example: Intf=123.456.789.100) so the variables get messed up if anything above the variable I need has spaces due to it not having quotes.
Any help on this is greatly appreciated. Thanks.