Skip to main content

Questions tagged [carriage-return]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
35 views

Notepad++ How can I delete the return before the &

I want to remove a new line created right before an & SAMPLE TEXT: "Bachelor of Science in Nursing & RN" "Bachelor of Science in Nursing & RN" "Bachelor of ...
Cecil's user avatar
  • 1
5 votes
1 answer
90 views

Less --hilite-unread prints carriage return ^M on blank lines

When printing files with Windows line endings (CRLF), less shows carriage return ^M in blank lines when option --hilite-unread is used. Lines with any text display correctly, skipping the carriage ...
Pawel's user avatar
  • 211
0 votes
1 answer
152 views

Can I indent pv's output (or of any command that outputs CRs)?

With pv, I can show a progress bar for anything I pipe through it, for example echo 1234567890 | pv --size 10 >/dev/null It prints a nice progress bar that gets updated whenever more data comes ...
Bowi's user avatar
  • 1,537
1 vote
0 answers
870 views

Where is the carriage return character?

I am confused about the carriage return character \r in Windows. As everybody knows, Windows uses CRLF, i.e. \r\n, to terminate lines. So I thought, and tested it out. I opened Visual Studio Code, ...
csstudent1418's user avatar
3 votes
2 answers
2k views

What is the meaning of the Carriage Return symbol in MSO Word?

What is the explanation (meaning) for the Carriage Return symbol shape in Microsoft Office Word?
KingsInnerSoul's user avatar
1 vote
1 answer
2k 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 ...
magloe's user avatar
  • 11
0 votes
0 answers
223 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 ...
ialexpw's user avatar
1 vote
0 answers
40 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 ...
Pandee's user avatar
  • 11
7 votes
3 answers
1k 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)...
user avatar
0 votes
1 answer
497 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 ...
Jaakko's user avatar
  • 320
0 votes
1 answer
29 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 ...
Paolo's user avatar
  • 45
3 votes
2 answers
2k 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 ...
sjngm's user avatar
  • 2,101
0 votes
1 answer
30 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 ...
Cron's user avatar
  • 1
3 votes
2 answers
672 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 ...
Synxis's user avatar
  • 133
0 votes
1 answer
147 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 ...
karatedog's user avatar
  • 827
1 vote
1 answer
2k 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, ...
beezy's user avatar
  • 11
0 votes
1 answer
488 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 ...
user3133076's user avatar
60 votes
2 answers
51k 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 ...
Daniel Griscom's user avatar
1 vote
2 answers
6k 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.
PriceCheaperton's user avatar
0 votes
1 answer
538 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 ...
asmeurer's user avatar
  • 570
0 votes
2 answers
246 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, ...
octopusgrabbus's user avatar
2 votes
4 answers
16k 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 ...
Fasih Awan's user avatar
4 votes
4 answers
7k views

Excel and tab delimited files, using Carriage Return and Line Feed

How do you introduce a CR and LF into a cell so when it is saved as a Tab delimited text file, the importing program will recognize the CR and LF?
Tim's user avatar
  • 41
1 vote
1 answer
1k 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 ...
user206602's user avatar
6 votes
4 answers
23k 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 ...
Luke Allen's user avatar
39 votes
1 answer
38k 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 ...
Matt's user avatar
  • 857
6 votes
4 answers
11k 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 ...
orokusaki's user avatar
  • 1,244
0 votes
1 answer
57 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 ...
Rich's user avatar
  • 2,141
5 votes
1 answer
5k 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 ...
TheTechGuy's user avatar
  • 2,044
32 votes
4 answers
168k 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 ...
千里ちゃん's user avatar
0 votes
2 answers
2k 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 ...
user avatar
1 vote
2 answers
3k 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 ...
Patrick S's user avatar
3 votes
2 answers
1k 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 ...
Warren Seine's user avatar
16 votes
5 answers
7k 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 ...
dggoldst's user avatar
  • 2,702
22 votes
9 answers
45k 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.
user25321's user avatar
  • 361
0 votes
1 answer
103 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\...
All2kool's user avatar
40 votes
3 answers
100k 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). ...
watain's user avatar
  • 681
2 votes
1 answer
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 ...
Andy Swift's user avatar
  • 1,985
6 votes
2 answers
2k 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 ...
Collin Allen's user avatar
  • 1,245
41 votes
13 answers
47k 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?
JoelFan's user avatar
  • 3,882