How to remove newline from a string in Bash The following characters are used for line breaks in operating systems: '\n' (newline) '\r' (carriage return) Moreover, \n is used in Linux (also called EOL, End of Line, newline). There may be variations on other operating systems. By default, many programs, Linux command line utilities automatically add the newline character –...