We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [carriage-return]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
20 views

How to disable PuTTY to not sending CR at the end of the buffer? [duplicate]

When I send something through PuTTY serial port I receive what I've wrote and an extra character, including a CR. Is a problem because it hasn't happened until now that I've started to use this ...
0
votes
0answers
42 views

Extra Carriage Returns in Windows 10 - Update Issue?

This seems to me like a Windows update issue, but I cannot be sure. I've started seeing extra carriage returns within text-format documents between lines. Opening these files on older machines works ...
1
vote
0answers
25 views

Carriage Return not getting printed in the end of line

I have got a PeopleSoft AppEngine program generating an output. All the lines in the output are expected to end with CRLF (CarriageReturn + LineFeed). But the program is not generating CR. Each line ...
6
votes
3answers
615 views

WSL - Trailing whitespaces being added to Bash code pasted into CMD WSL TTY per window size

I have a few Bash scripts on Windows and I sometimes copy them from Notepad++ into the WSL (CMD based) terminal emulator (TTY) to execute them. The problem: Trailing whitespaces (Green boxes in nano)...
0
votes
1answer
138 views

Clean carriage returns from a text file so that it looks like its printed to console

How do I convert carriage returns from a text file to the way they are displayed in console? So for example, if a program prints the following lines to a console: start\n progress 01%\r progress ...
0
votes
1answer
17 views

Does line-ending cause an issue for Local Folders in Thunderbird?

Can i simply copy/use the same files from a Windows computer onto a Linux computer or do they have to be converted in terms of line-ending? I'm not asking in general, but for the Local Folders of ...
3
votes
2answers
807 views

Let Tee Handle Carriage-Returns Better

I've written a Java-console application that repeatedly prints its status to the console using carriage-returns (\r) at the end rather than line-feeds (\n) to keep the output on one screen. I also ...
0
votes
1answer
26 views

Unix, Shell Scripting

I am extracting data from an Oracle database and writing it into a flat file. I need the line delimiter to be FFLF. I am able to add the FF character but I am unable to remove the CR character. How ...
2
votes
2answers
258 views

Why is carriage return badly handled in redirections?

Let's have the following code (here in python): print("something\r any") When running it in a console, this correctly produce: anything (after printing something, the caret returns back to the ...
0
votes
1answer
124 views

Why sed regexp digit character class includes CR character if the last digit is at the end of the line?

I wanted to extract the Content-Length's size from an URL and output the URL + $size on the same line. The data I worked with: > curl -I -s http://yahoo.com HTTP/1.1 301 Redirect Date: Thu, 10 ...
1
vote
1answer
679 views

linux password contains carriage return (^M or 0x0D or \r): how to send password through ssh

I have a password for a user in linux that contains text and carriage return. I am trying to connect using ssh (with or without sshpass) but I noticed that ssh doesnt send carriage return in password, ...
0
votes
1answer
407 views

Delete “unidentified” carriage-return char from a text file

I have a text file containing a strange "carriage return" char. If I open the file with Notepad I can't see the new line. If I open the file with Wordpad I can see the new line. I uploaded an ...
33
votes
2answers
16k views

What do you call a keyboard with a bar-shaped Enter key?

I'm a programmer, and a touch-typist, and so type best when the keys I use are where I expect them to be. Perhaps because I'm American, and do most of my work on Apple computers, I expect the keyboard ...
1
vote
1answer
5k views

Removing carriage returns from a mail merge field in Word

I have a mail merge field called, «ADDRESSLINE2» My data is bad how do remove the carriage return from this merge field.
0
votes
1answer
401 views

Using \r in bash PS1

I was getting a little tired of my typeaheads in Bash from messing up the PS1. For instance, I would execute a command, like ls, and while it is running, start typing the next command, like echo, and ...
0
votes
2answers
155 views

Is there a Windows file format with <CR>-separated records (without <LF> characters)?

Today a file was extracted on a Windows system, Windows 7 to be exact, and ftp'd to a Unix system. The application that processes the file deliberately failed, because the file had one line in it, ...
2
votes
4answers
5k views

Removing carriage returns (^M) from certain lines without modifying every line

I have some fairly long C++ files, and git diff --check is reporting that there are a few carriage returns ^M on about 15 different lines. This is on a Windows 7 machine. After searching through ...
1
vote
1answer
740 views

Paste from text editor to spreadsheet keeping CR in one cell

I have tried this in Notepad and Notepad++, but can't get it to work. What I want to do is close to the opposite of this post: How to copy multi-line text from Excel without quotes? I want to paste ...
6
votes
4answers
17k views

How to remove line breaks (or carriage returns) only from certain parts of a block of text?

Whenever I copy formatted text from a PDF file which is formatted to have line breaks (or carriage returns), I need to find a way to remove these line breaks without removing the paragraph format. To ...
29
votes
1answer
23k views

Did Mac OS Lion switch to using line feeds (LF '\n') for line breaks instead of carriage returns (CR '\r')?

I switched to Lion a while back and just noticed that when I save a text file in TextEdit, it uses LF for line breaks. I looked around everywhere I could think of on my Lion computer and could not ...
6
votes
4answers
10k views

How can I replace all \r\n with \n using Komodo Edit

Somehow, some 40 files (mostly Python modules) in my project have \r\n (Windows style) as line endings. I'd like to change them to \n (Unix style) line endings, but Komodo Edit doesn't appear to ...
0
votes
1answer
53 views

Doing an SVN merge on a different OS from most users - does this cause issues?

I am working in a place that develops software on Windows. We use SVN for version control. I work much more quickly in a bash shell, and was asked to do a merge of a tag into a branch. I automatically ...
5
votes
1answer
4k views

copy excel cell copies carriage return also

I am copying individual cells from excel and pasting it into SQL. Each time I do it, carriage return is automatically added to copy. Repro: Enter 123 in any cell in excel 2007.Click on another ...
22
votes
3answers
101k views

How are \n and \r handled differently on Linux and Windows?

I think \n moves the needle down, and \r moves the needle to the beginning of a line (left align)? I'm not sure, though. So, if I'm wrong please correct me.... Anyway, I was told that Windows and ...
0
votes
2answers
1k views

Get External Data with carriage returns

I am trying to find a way to properly import a text file into excel that contains a carriage return using the Get External Data option. The file has a text qualifier and is pipe delimited. Here is ...
1
vote
2answers
2k views

Terminal printing carriage return as ^M?? [linux telling me to stop coding?]

I was writing a script in vim, dropped my keyboard, and continued coding. I didn't notice that my cursor changed from the normal _ type cursor, to a [] block. (as if i hit insert in a windows ...
3
votes
2answers
825 views

Ignore carriage return for a specific file with Git

I use multiple environments thanks to virtual machines, and my code directory is shared between them. I also like my code to have the native (host) line endings. When I'm on a Windows host, I ...
13
votes
4answers
5k views

Join lines inside paragraphs in vim

Suppose you've typed a long document in vim with automatic line breaking on, so all the lines have been broken at, say, 79 characters. You may have even applied formatting to the whole document to ...
19
votes
8answers
28k views

Is there a Bash command to convert \r\n to \n?

Is there a Bash command to convert \r\n to \n? When I upload my scripts from Windows to Linux, I need a utility like this to make things work.
0
votes
1answer
95 views

How to Launch a Program and Two Returns

I want to launch a program that then produces two dialog boxes I wish to just hit ENTER for. How do I do this? I have this so far but want it followed with RETURN twice. w:: Run E:\Program Files\...
32
votes
3answers
58k views

Vim: show line feeds & carriage-return

How can I display line feeds and/or carriage-return characters in vi/vim? I know that set list shows all the whitespace characters (?), it also replaces tabs \t etc (but that's not what I want). ...
2
votes
1answer
4k views

Komodo Edit: How to use Tabs and Carriage Returns in Find/Replace?

In NoteTab Pro, I could use tabs and returns in the find and replace dialogs by using ^t and ^p. Now I have switched to Komodo Edit which is much more powerful, and I can't find any way to search for ...
6
votes
2answers
636 views

Why new lines at the end of files?

Why do some of the more technical apps require newlines at the end of files? I've read it has something to do with diffs, but shouldn't diff be able to figure the relative positions of things out on ...
34
votes
12answers
31k views

Convert CRLF's to line feeds on Linux

What's the best way to convert CRLF's to line feeds in files on Linux? I've seen sed commands, but is there anything simpler?