Questions tagged [eol]

EOL is short for "end of line". In text files each line is terminated with characters such as linefeed or carriage return or a combination thereof.

EOL stands for "end of line" and refers to the various character or combination of characters that signify the end of each line of a text-based file.

For historical reasons there are various common EOLs:

  • linefeed or newline, ASCII 0x0A: common on systems with Unix heritage including Mac OS X
  • carriage return + linefeed, ASCII 0x0D 0x0A: common on systems with Microsoft DOS and Windows heritage and in text-based internet protocols
  • carriage return, ASCII 0x0D: used on Apple Macintosh up to System 7

These differences can present problems when using files and source code on multiple operating systems. Issues may be encountered with text editors, compilers, and revision controls systems.

See also

380 questions
0
votes
1 answer

Python ftplib EOFerror

I have a script that connects to server and makes a local copy of the whole directory. EOFerror occurs after exactly 50 files of any choice have been downloaded. Can anyone please tell me, what is wrong with the script? ERROR: Traceback (most recent…
Gundars Mēness
  • 488
  • 4
  • 17
0
votes
3 answers

Remove trailing lines with php preg_replace

I know this has been asked before @ this post, but I am trying to strip empty lines at the end as well. I am using: function removeEmptyLines($string) { return preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $string); } Which works great…
tr3online
  • 1,429
  • 2
  • 24
  • 45
0
votes
6 answers

substr() to EOL?

How can I grab the entire contents of a line? I have a suspicion substr() is not the answer. Authors: Mr. Foo, Mr. Bar Date: Jan 1, 1970 etc... In my $file_text string I have something similar to above. I'm looking for something like…
nulluser
  • 68
  • 6
-1
votes
2 answers

Insert line break after every command output in command prompt

I want to save content of every text file in another output text using command prompt. I have used this command: type ".\test\*.txt" > out.txt But every output is appended in that text file. How do I introduce line break into output file after…
DARUNJEET BAG
  • 19
  • 1
  • 4
-1
votes
1 answer

Timeit module is rejecting print("\n") statements

I am trying to run the following code example from timeit import timeit as t setup = ''' import time from multiprocessing import Pool def square(x): square = x * x time.sleep(1) return square ''' case01 = ''' def caso01(): …
Ernesto
  • 19
  • 2
-1
votes
1 answer

ASP .NET 2.0.50727 in the server response header. How to be sure is EOL?

I found this version of ASP .NET in the header Server as a response from a web server. How can I verify if this version has still an active support or it is ended? On the microsoft website I can't find official info on this specific version.
Maicake
  • 1,046
  • 10
  • 34
-1
votes
1 answer

I received an EOL error on a print line. Can anyone help me with it?

I'm getting an EOL error and am unsure how to fix it. My code is as follows: print ("I'm so glad you feel " + emotion + ", " + username") I get the following error print ("I'm so glad you feel " + emotion + ", " + username") Error: EOL while…
-1
votes
1 answer

merging type of EOL, (End of File)

I have some files, They're text files and I imported them via LOAD DATA mysql command into a database table. But I have problem with some of them. All of them are 6236 lines: $ wc -l ber.mensur.txt 6236 ber.mensur.txt When I import…
PersianGulf
  • 2,845
  • 6
  • 47
  • 67
-1
votes
1 answer

CLI EOL [End of Line] converter

I've been looking for commands or tools that I can use in the shell to convert a given file from DOS to Unix in terms of newlines and carriage returns. I have found one but this is only available through npm. I currently do this manually through…
nyvokub
  • 539
  • 3
  • 18
-1
votes
2 answers

End of line in JavaScript

I have problem - can't detect what eol char used on the page. For example server send this data:
eolusr
  • 1
  • 1
  • 3
-1
votes
1 answer

Not able to read "\" from an array

I want to search and replace the string "\" from the array 'abc' in python code. I'm using the following code abc=re.sub("\"," ",abc) But it is giving the following error File "script", line 99 line_map=re.sub("\"," ",line_map) …
Vysakh K
  • 21
  • 1
  • 3
-1
votes
1 answer

EOL while scanning string literal, Python Pygame syntax error?

Errr can some one help me with this. When I try to run the code i get this error: EOL while scanning string literal????????? Here's my code (its the main menu of the game): bif="menubg.jpg" load_check_x = "null" load_check_y = "null" import…
user3256142
  • 11
  • 1
  • 1
  • 4
-1
votes
1 answer

Which EOL should I use in general?

I wondered if there was a EOL (end of line) to be privileged between \n, \r\n and \r (if my enumeration is right). The question is in general and, especially about what a webserver should serve? Bonus: if you can also tell me about Python…
jeromej
  • 10,508
  • 2
  • 43
  • 62
-1
votes
1 answer

EOL error while scanning

I've been having trouble with this python 3.3.0 code. It gives me an EOL error. This is the code: print('You own a'," ".join(profile['inventory']) I haven't tried anything else because I don't really know what an EOL error is.
-2
votes
2 answers

Decode base64 string with quotes

H4sIAAAAAAAAAO1aT3PbSHaHrPHYkj1j73gn2doku3B2N7PJLjz4T0BVqQpFQiQ4BCCBoCjiomoADRIk/mhBUBT5AXJL5ZbkkqocUqVrDvkE+ijzFXJNJXkNSjLHpjyyx95JuWQfRHSjG6/f+/V7v/e6tylqi9qItimKYu5R96Jg4x82qPu1bJoWG9vUZoEGW9QnOPWHFPm3SW01owDvxWgwgcf/2aa2O+NpHFuzFOcPqXt6QP06CESZD8…
Jordan Baron
  • 171
  • 1
  • 2
  • 7
1 2 3
25
26