While go through -r line; do # $'n' prints a newline so we do not have to determine what Exclusive chars the string incorporates stringBuilder+="$line"$'n' However in the event you were to interchange printf with echo in this instance, echo would handle n like a string, Hence ignoring the intent https://socialdummies.com/story5121444/cat-store-can-be-fun-for-anyone