I'm writing a bash script which contains a variable called "line", and I want to print it's content. The problem is that the "line" variable is a string which contains the '$' char.
My question is how can I print the value of the "line" variable, without replacing the dollars with variables.
For example, if "line" is containing "a$#gz%^", this code:
echo $line
Will output this:
a0gz%^
And if I'll put the '$line' in single quotes, it will just print '$line':
echo '$line'
$line
Hope you'll be able to help.