I am passing a variable that needs to be evaluated with a print command. An example of my variable may look like this "variabl%e"
I understand that the best way to get around the percent problem would be to simply add another percent sign to the variable and then it would evaulate out to one percent. However, my variable is being populated from a higher level and the script is only reading out to have the one percent.
Is there an option in the print command printf that will handle this without the need of adding the extra percent?
If not, what would be the quickest way in which I could add the extra percent sign into the variable on the fly, and return the variable with the newly added percent. Also, are there any other operators that will give similar trouble when using the printf command?