Working with printf in a bash script, adding no spaces after \"\\n\" does not create a newline, whereas adding a space creates a newline, e. g.: >
printf
\"\\n\"
It looks like BASH is removing trailing newlines. e.g.
NewLine=`printf " \n\n\n"` echo -e "Firstline${NewLine}Lastline" Firstline Lastline NewLine=`printf " \n\n\n "` echo -e "Firstline${NewLine}Lastline" Firstline Lastline