Bash Replace Character In String With Newline