Adding newline characters to unix shell variables September 25, 2023 by Tarik Try $'\n': VAR=a VAR="$VAR"$'\n'b echo "$VAR" gives me a b