Questions tagged [lf]

Line Feed is a special character (unicode U+000A).

Line Feed is a special character (unicode U+000A), (ASCII: '\n', 0x0A, 10 in decimal). Line feed (LF) and carriage return (CR) are closely associated to represent end of line (EOL).

79 questions
0
votes
2 answers

Has anyone got an example of aerith style swing mixed with GUI maintainability of SWT editing?

My boss loves VB (we work in a Java shop) because he thinks it's easy to learn and maintain. We want to replace some of the VB with java equivalents using the Eclipse SWT editor, because we think it is almost as easy to maintain. To sell this, we'd…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
0
votes
2 answers

replace lf with cr-lf in text file Cygwin

I've got a Cygwin script that outputs stuff to a file. My only problem is that it always uses the \n "lf" line endings instead of \r\n "cr-lf". I want to either replace them or just get cygwin to always output \r\n for line endings. I've tried the…
Ian
  • 4,169
  • 3
  • 37
  • 62
0
votes
0 answers

Can't image preview in lf file manager with iterm2 in macOS

I installed lf file manager on my Mac and configured it for my purposes but I can't configure it for image preview. I tried it using ueberzugpp but it needs to add lfrun file to /usr/bin but It cant because It was want to remove system integrity…
0
votes
0 answers

%lf is not working in Viesul studio 13 and VisualGDB Ultimate Edition

A problem occurred while using %lf in sprintf. char ary[20]; double d = 0.1235f; sprintf(ary, "%lf", d); d : 0.12349999696016312 [result] ary : "" I can't find the reason why.
kyesia
  • 25
  • 3
0
votes
1 answer

Add CR & LF in all lines python

first of all, thanks to read my post. I hope you guys can help me, I'm really new in Python, sorry maybe the answer is really easy. I read several posts to add [CR][LN] in all lines but the main issue I have in my script ( I don't create that ), is…
Carlos
  • 9
  • 1
0
votes
0 answers

Multiple File batch variable is offset

So I am trying to write a script to check remote machines to see if they have specific updates. It works when there is 1 entry in variable. However, It would be much better if I could check multiple variables and return a result for each…
Murpire
  • 1
  • 1
0
votes
1 answer

How to read LF RFID and write it on the phone

I have an LF RFID tag. I understand that this kind of tag is unreadable with the NFC technology that any Android phone has nowadays. My question is: if I get an RFID reader, can I read LF RFID tag and write it on my phone and use it from my phone…
0
votes
2 answers

Add new line after x charters (repair corrupted file)

I have a text file from a datalog, the file should be lines of data, space padded so that each line is 197 characters long and terminated with LF. Some of the LFs are missing, so the next line is conjoined to the previous line. E.g. line 1 is good,…
Scott
  • 161
  • 5
  • 13
0
votes
1 answer

Can we have a similar thing like dos2unix in javascript

I want to know whether we can convert from DOS(CR LF) format to UNIX(LF) format in Javascript/JQuery? In linux/unix, we have a dos2unix command and I'm looking similar thing in javascript. Thanks in advance, happy coding :)
0
votes
0 answers

UNIX LF to Windows CR LF

I have part of code that transmit values to CSV file but in UNIX LF. But I need Windows CR LF function insert_data($columns, $elements) { $elements_to_insert = count($elements); $count = 0; $message =…
Alex
  • 1
0
votes
0 answers

How to import data in R from the CSV if unexpectedly occurs in some of the lines LF instead CRLF

There is a file with this content (6 lines): field name,english description,russian description,format**CRLF** name,name of ndicator, Наименование показателя,varchar(1000)**CRLF** okpo,OKPO code,Код ОКПО,varchar(8)**CRLF** 11103,"indicator…
user7919275
0
votes
1 answer

When downloading a .CSV file the CRLF line breaks are missing, but Excel can load it fine. Can I fix the CRLF without loading Excel?

I am retrieving daily logs from a system in the format of a .csv file. I want to import these to my database. The issue is that, for some reason, these .csv files seem to lack CRLF line endings (it's being replaced by LF). If I open the file in…
sebjsv
  • 1
  • 3
0
votes
0 answers

convert CRLF file to LF in windows batch

i am creating files in Windows, so they're automatically created as CRLF files; i need them to be LF files. The files are created by a batch script, which then use them and delete them afterward, so I need the change to be done in the batch script,…
Ablia
  • 191
  • 2
  • 10
0
votes
2 answers

Delete LF from file using C#

I have to make a script in C# to delete 'LF' from a file. The structure of the file like this : line1 'CR''LF' line2 'CR''LF' line3 'LF' some_text_of_line_3 'CR''LF' I want to have this : line1 'CR' line2 'CR' line3 some_text_of_line_3 'CR' Thank…
Steph
  • 39
  • 3
0
votes
0 answers

Multiple Line Endings in a single file

Basically I am trying to convert Line Endings of a large number of files. While I'm doing a lazyread and using regex to replace the line endings In order to find if the file already exists in desired line ending, I have put an if statement like the…
San PJ
  • 11
  • 1
  • 3