Although go through -r line; do # $'n' prints a newline so we do not have to determine what Specific chars the string is made up of stringBuilder+="$line"$'n' Nevertheless if you had been to replace printf with echo in this example, echo would take care of n as being a https://petskyonline-onlinestrore.blogspot.com/2025/07/the-day-my-cat-got-automatic-feeder-and.html