I want to set a variable to use for a comparison that contains special characters . " / and aswell as quotes within the string it has quotes at the outside. It's the filter field in multipath
If [[ ' grep -v '#' | grep field .............' == "$VAR" ]]; then
Ps sorry cant get backticks on this ipad
I can see with set -x that the comparison look identical but I think there may be some hidden chars - I guessed newline but still no joy. Any idea how to view any hidden chars with echo or something else ?