Though examine -r line; do # $'n' prints a newline so we don't have to understand what special chars the string incorporates stringBuilder+="$line"$'n' On the other hand when you ended up to interchange printf with echo in this instance, echo would take care of n being a string, As a https://apollobookmarks.com/story20121101/the-5-second-trick-for-cat-store