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
1 answer

openssl, stdin, echo, and <<<: handling trailing line feed

TWO QUESTIONS: Is there a concise way strip the trailing \n of the stdin from version when using << Is there a name for <<< that will help when searching for answers to questions like this? ('IFS' and 'three left angle brackets', etc, haven't been…
WhatsYourFunction
  • 621
  • 1
  • 9
  • 25
0
votes
1 answer

Failing to Create XML in powershell with LF & UTF-8

I've been trying the past few days to create a Powershell script that will create a XML file with 2 fields saying the time. Problem is the XML created is CR LF with UTF-8 BOM and what I need is LF with UTF-8. Edit - Following 'LotPings' advise,…
Radi
  • 1
  • 1
0
votes
0 answers

SSIS : How to Ignore LF when CRLF delimiter

Our Flat File Manager from csv file had import error due to unexpected LF in some columns, even though with file delimiter CRLF. The csv file was transfered from other Windows system with same code page (SJIS, 932) but that file was originally…
Sachiko
  • 808
  • 1
  • 12
  • 31
0
votes
1 answer

How to save a dataframe as a .csv file with UTF-8 encoding and LF line ending in R using Rstudio?

I came across this weird situation: I need to save a dataframe to a .csv file UTF-8 and with a LF ending. I'm using the latest version of R and Rstudio on a Windows 10 machine. My first attempt was to do naively: write.csv(df, fileEncoding="UTF-8",…
mickkk
  • 1,172
  • 2
  • 17
  • 38
0
votes
2 answers

Build string with OS-specific newline characters (CRLF, LF, CR) to write it into a database table column

I want to write write a string that contains the usual new line character of R (\n) into a column of a database table. How can I convert the new line into operating system specific representation (Windows = CR/LF, Linux = LF, Mac = CR...)? I have…
R Yoda
  • 8,358
  • 2
  • 50
  • 87
0
votes
1 answer

Can not add line feed to string

I have an Arduino Leonardo and trying to use it as a serial to USB converter. On Serial1 I have a string ending on a number. This number I'm trying to get via USB to the PC. It works very fine but I need a '\n' at the end and I don't know how. When…
toolsmith
  • 11
  • 1
  • 2
0
votes
0 answers

MS Excel changes \n with \r

I have CSV file with line ending character equal to "\n". When I edit it and hit save, I get alert "Some features in your workook might be lost if you save it as CSV". I tried with both Yes and No, and in both cases it changes line endings in file…
user3681549
0
votes
1 answer

Git: commit file with LR with msys/cygwin Git

I have a bash script under Git version control on Windows (cygwin git). I would like checkout file from repo with LF (it is bash script) on windows (and I have core.autocrlf=true). As a result, I've got CRLF file and "$'\r': command not found" error…
k84d
  • 1
  • 1
0
votes
1 answer

Replacing vbCrLf with vbLf

I have a a paragraph of text that is sent in with an Lf tag for new lines separating parts, when this is being processed the Lfs end up as CrLF. My issue is that this data is being trimmed down to 4095 characters(database defined char limit) and the…
Onboardmass
  • 84
  • 3
  • 11
0
votes
1 answer

Python regexp \n issue

This searched ok: >>> re.search(r'(.*?)\r\n(.+?)\r\n', 'aaa\r\r\nbbb\r\n').groups() ('aaa\r', 'bbb') But when I replace one of three b to \n it not searched: >>> re.search(r'(.*?)\r\n(.+?)\r\n', 'aaa\r\r\nb\nc\r\n').groups() Traceback (most recent…
Ivan Borshchov
  • 3,036
  • 5
  • 40
  • 62
0
votes
1 answer

Notepad++ search LF with regex

I need to find specific part of text that contains LF symbols, but I can't use \n because it is avialible only in Extended search mode (without regex). Is there any implementation of LF symbol in regexs or any hack in Notepad++? If no, can you…
0
votes
1 answer

Jekyll LF/CRLF issue with git

I have a Jekyll folder in which only the production part (_site) is tracked with git. When I run the command to serve the local site with jekyll serve -w, the files will be changed to LF or CRLF depending on the machine I'm working on: CRLF for…
Ronan
  • 177
  • 1
  • 12
0
votes
2 answers

regexp to replace LF within quotations

I was looking for some help in regards to a csv file that i am trying to upload into a database. The problem I have is that within a csv I have a field of text with quotations and within this text I have a problem where users have added a carriage…
mowen10
  • 383
  • 1
  • 12
  • 30
0
votes
1 answer

C++ stdin and stdout conversion between CR+LF and LF and CR

Ok I am planning on making a file for storing data that I will be importing into a program. This program is to be compiled for Linux, Windows, and potentially Mac. Now what I really want to know is would I need these data files to be slightly…
PhobicHD
  • 60
  • 10
-1
votes
2 answers

where should I insert "else" to reduce "if"

where should I insert "else" to reduce "if" public class Main2 { public static void main(String[] args) { for(int i=1;i<=12;i++) { if(i%6 ==1) { System.out.print(" "); System.out.print(i); …