Preserving newlines / line breaks in BASH
declare f="fafafda
adffd
adfadf
adfafd
afd"
echo $f
echo "vs"
echo "$f"
Output:
$./above
fafafda adffd adfadf adfafd afd
vs
fafafda
adffd
adfadf
adfafd
afd
keywords: \n
declare f="fafafda
adffd
adfadf
adfafd
afd"
echo $f
echo "vs"
echo "$f"
Output:
$./above
fafafda adffd adfadf adfafd afd
vs
fafafda
adffd
adfadf
adfafd
afd
keywords: \n