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

bash - How to pass a line feed to perl from within a bash script?

I am trying to replace all digits sequences followed by a line feed and the letter a. Those digits sequences are located in a file called test.txt. The bash script command.sh is used to perform the task (see…
Stephan
  • 41,764
  • 65
  • 238
  • 329
0
votes
1 answer

How to remove Replace Carriage Return and Line Feed using java

My target is to remove the CRLF from the certificate and append String at the end of the line I am using the following code to remove it : File filename =new File("D:/text.txt"); RandomAccessFile fw = new RandomAccessFile(filename, "rw"); …
String
  • 3,660
  • 10
  • 43
  • 66
0
votes
1 answer

Oracle: Find control characters except line feed

I'm trying to all rows where a column contains any control charters with the exception of the line feed character (hex value of A). I've tried the following, but this only returns results that have a control character and don't have a line feed. I…
jcarman
  • 3
  • 2
0
votes
1 answer

SAS Replace line break / carriage return with a space

I want to read a file and replace all the line break / carriage return with a space. Can you please help? /*input.txt*/
  • Jean Paul Gautier …
  • AKS
    • 184
    • 2
    • 18
    0
    votes
    1 answer

    Why doesn't my server regular expression recoginse the end of an input sent by Jmeter?

    I have a server, it uses the following regular expression to determine the end of a "transmission" from a client: .*End\":[0-9]{3}}]}\r\n This works exactly as expected when a normal client connects. Has done for over a year now. I've decided to…
    mal
    • 3,022
    • 5
    • 32
    • 62
    0
    votes
    1 answer

    Python EOL issue in text file

    G'day all, I have a text file that was extracted from comments field of a Geographic Information Systems (GIS) app (name withheld). I need to parse this text and produce a pretty report. The text has individual lines that are terminated with…
    doojinsi
    • 11
    • 4
    0
    votes
    2 answers

    Java - convert unix linefeed to carriage return

    I build a string on a unix server and write it then down on a windows maschine. To make a linefeed I use "\r\n" but then the server only adds the unix linefeed "\n". The point is the eol is in hex 0a and I need 0d0a for other programs. Has anyone an…
    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

    PHP: \r character being ignored

    I have a string $s="one\rtwo\rthree\rfour\rfive" and when I do print $s I expect to see five only because the linefeed resets the line. Instead I seem to be seeing one two three four five. What's going on?
    tetris11
    • 817
    • 2
    • 11
    • 27
    0
    votes
    1 answer

    C# Xml Node InnerText with LineBreaks - How to write and Read

    I want to store a memo text with line breaks in a xml node using XmlDocument object in c#. I am able to write it with simple assignment of inner Text. It looks like the following Line 1 ... ... Line n But, i…
    Venu
    • 1
    • 2
    0
    votes
    1 answer

    Python: How to return a linebreak in a function

    def linebreak(fruits): ''' >>> fruits = 'apple banana pear' >>> linebreak(fruits) apple banana pear ''' response = '' for fruit in fruits.split(): response += fruit + '\n' return response if __name__…
    ldavey
    • 1
    • 1
    • 2
    0
    votes
    2 answers

    Bash - Removing Linefeed character from a script

    I have a script that I've largely finished except for one issue I just can't seem to crack removing a linefeed character before it gets passed to zbarimg. I've tried various things looked around online and can't seem to find anything to get rid of…
    0
    votes
    1 answer

    Change line feed of csv file to the same one

    I need to work with csv files. I want to write an web app which is working with csv files and is written in php. Problem is all the csv files have diffrent line feeds /r, /n,/r/n/. I need to have the same in all of them. Till now i do it like…
    Montezuma
    • 49
    • 2
    • 12
    0
    votes
    0 answers

    Read the whole line till Carriage Return not Line Feed in C#

    Is it possible that I can read the whole line of a text file to the next Carriage Return rather than the Line Feed? Currently, I'm reading lines but it counts a Line Feed (LF) as a new line but I need it to only read a new line when it hits a…
    Saif Ahsanullah
    • 204
    • 3
    • 13
    0
    votes
    3 answers

    JMS TextMessage not recognizing CR LF

    It appears to me like JMS TextMessage containing Java.lang.String isn't recognizing \r\n as line-break but instead treating the CR LF as part of input on a Windows machine. @Override public void onMessage(Message message) { try { …
    John C
    • 1,795
    • 4
    • 27
    • 42