Print a variable with multi-line value in shell?
export TEST="A\nB\nC"echo $TEST
gives output:
A\nB\nC
but:
echo -e $TESTABC
So, the answer seems to be the '-e' parameter to echo, assuming that I understand your question correctly.
export TEST="A\nB\nC"echo $TEST
gives output:
A\nB\nC
but:
echo -e $TESTABC
So, the answer seems to be the '-e' parameter to echo, assuming that I understand your question correctly.