Top "Newline" questions

Newline refers to a character sequence representing a line break in text (also known as End of Line, EOL, or Line Break).

How do I create a new line in Javascript?

var i; for(i=10; i>=0; i= i-1){ var s; for(s=0; s<i; s = s+1){ document.write("*"); } //i …

javascript html newline line-breaks
Replace a newline in TSQL

I would like to replace (or remove) a newline character in a TSQL-string. Any Ideas? The obvious REPLACE(@string, CHAR(13), …

tsql newline
Split Java String by New Line

I'm trying to split text in a JTextArea using a regex to split the String by \n However, this does …

java regex split newline
How to remove line breaks from a file in Java?

How can I replace all line breaks from a string in Java in such a way that will work on …

java string newline line-breaks
How to insert a new line in Linux shell script?

I want to insert a new line between multiple echo statements. I have tried echo "hello\n", but it is …

linux bash newline
./configure : /bin/sh^M : bad interpreter

I've been trying to install lpng142 on my fed 12 system. Seems like a problem to me. I get this error […

linux bash shell newline
What are carriage return, linefeed, and form feed?

What is the meaning of the following control characters: Carriage return Line feed Form feed

newline carriage-return linefeed control-characters ansi-escape
How do I handle newlines in JSON?

I've generated some JSON and I'm trying to pull it into an object in JavaScript. I keep getting errors. Here's …

javascript json newline
Difference between \n and \r?

What’s the difference between \n (newline) and \r (carriage return)? In particular, are there any practical differences between \n …

newline carriage-return
How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script?

How can I programmatically (i.e., not using vi) convert DOS/Windows newlines to Unix? The dos2unix and unix2…

linux windows bash unix newline