I am trying a run a script inside another script as below:
$a="$(sh test_part.sh /AB/pass_file.txt)" echo $a
sh test_part.sh /AB/pass_file.txt returns an output like below:
ABD SDFDR TDFDG DGFKFH
I want to store that in the variable
$a as it is.
With my current script I am getting below error:
test_part.sh: line 2: $'=ABD\nSDFDR\nTDFDG\nDGFKFH': command not found