Questions tagged [linefeed]

Linefeed, also known as LF, is a character that controls the switching to the next line.

Linefeed, also known as LF, is a character that controls the switching to the next line.

303 questions
0
votes
2 answers

Replace line feed (lf) with empty string without replacing lf in crlf C#

I wanted to replace any line feed (Lf) in a file with an empty string "". However, I don't want it to also replace the Lf in the CrLf one (end of line flag). I was thinking something like this: fileContent.Replace("\n",""); The line of code above…
Steven
  • 3
  • 3
0
votes
1 answer

Processing text files created in UNIX environment using Java in Windows

I have a text file that was created in Unix environment. Now I want to process this file in java but on Windows environment. So is there are anyway I can get rid of problem of new line characters as Unix new line hexcode is '0A' but in windows it is…
Ravi.Kumar
  • 761
  • 2
  • 12
  • 34
0
votes
1 answer

Capturing Line Feed character in a Windows Forms TextBox

I have a Windows Forms application containing a TextBox. After I focus on the TextBox, I use a USB barcode scanner to read out a barcode string which always starts with a Line Feed (LF) character. The string that I retrieve later from the TextBox…
Radu M.
  • 1,271
  • 2
  • 14
  • 19
-1
votes
1 answer

Replace a line feed in SQL with TRANSLATE

Apparently Oracle appends a line feed character CHR(10) to the end of the default value when it stores it in the system catalogue. I'm trying to replace a line feed in some SQL report data using the TRANSLATE function but I'm unsure of the syntax.…
Adachi
  • 23
  • 5
-1
votes
1 answer

Usage of Line feed and Carriage return

System.out.println("Hello \rWorld"); Output:- world why is the Hello missing, I am using Windows. How does /r,/n,/r/n differ ?
Sahisnu
  • 1
  • 1
-1
votes
2 answers

Objective C, How to change line in UITextView

I am downloading UITextView contents from a web server and it just returns text without any line feeds. I inserted \n, \\n, [CR], and more into the place I want to change the line but none of these worked. How can I change the line for the text in…
codereviewanskquestions
  • 13,460
  • 29
  • 98
  • 167
-1
votes
1 answer

Replace CRLFCRLF with CRLF in large File with python

I have large txt-files which happen to have the combination CRLFCRLF as end-of-line. I have to change this to CRLF to be able to work with this file. Text-Editor Replace and Text-Editor Makros take too long, because the file is 8 GB. How can I do it…
-1
votes
2 answers

How to get rid of last string in an array data

I am using a code that pulls a data between two strings. Below is my code works fine but i got a problem with it: function pullAllDataBetween(file_data, str1, str2) { var string_nodes = []; var append = false; for (var i = 0; i < file_data.length;…
Tramyer
  • 19
  • 4
-1
votes
2 answers

Delete Line Feed character in c#

I have a csv file. It is not so big, the problem is this. The end of the line has these two characters at the end of every line cr lf. Unfortunately in only one single register there is a column with a LF character in the middle. When I try to…
d2907
  • 798
  • 3
  • 15
  • 45
-1
votes
1 answer

How to recognize linefeed when inputted by user as "\n" and eventually replace with a space?

If I have a speech, for example, that is being inputted by the user: speech = input("Enter your speech: ") and if this input is (for example): Hello, welcome to my speech. This is my exemplar speech. Which I am trying to analyze. But if I…
13K
  • 19
  • 2
-1
votes
1 answer

Insert data into RRDTool from TCP stream

We are trying to insert values from a TCP stream into an RRDTool database. Even though the first value is accepted by the RRDTool, the next one is not. We get the error: convert to float not complete: tail Our client code is: #!/usr/bin/env…
-2
votes
3 answers

Is it safe to just put "\n" instead of "[\r\n]" when writing a JavaScript Regular expression?

Update: my original test involving copy/pasting from a text file into the browser was flawed. I created a new test in JavaScript which verified that carriage return \r is in fact being matched. The following code logs ['\r', '\r', '\r'] to the…
user3163495
  • 2,425
  • 2
  • 26
  • 43
-2
votes
1 answer

Match all instances of \r\n, except that occurring before the very end of the document

Using preg_replace, I need to define the regex PATTERN to match all instances of the newline sequence \r\n exactly, EXCEPT that occuring at the very end of the text. preg_replace(PATTERN,'"\r\n"',$text) How do I specify PATTERN in this case?
ptrcao
  • 421
  • 1
  • 5
  • 19
-2
votes
1 answer

how to display the output in oracle with the select query

Below is my EMP table with some sample data EMPNAME | WORK_DATA | WORK_HOURS --------------------------------- abc | 01-SEP-13 | 9 xyz | 01-SEP-13 | 8 abc | 02-SEP-13 | 8 xyz | 02-SEP-13 | 7 abc | 01-OCT-13 | …
-3
votes
1 answer

How can I avoid CRs in files in Git/IntelliJ on Windows?

I'm getting the /bin/bash^M: bad interpreter: No such file or directory I know there are multiple posts for this as seen here: /bin/sh^M: bad interpreter: No such file or…
Billy
  • 1,049
  • 3
  • 14
  • 23
1 2 3
20
21