I am trying to use a bash variable to store json.
testConfig=",{
\"Classification\": \"mapred-site\",
\"Properties\": {
\"mapreduce.map.java.opts\": \"-Xmx2270m\",
\"mapreduce.map.memory.mb\": \"9712\"
}
}"
echo $testConfig Output: ,{
If I give it in a single line it works. But i would like to store values in my variable in a clean format.
I tried using cat >>ECHO That didn't work either
Any help is appreciated as to how I can store this in order to get the output in an expected format. Thanks.