The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
37 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 ...
23
votes
1answer
1k views

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

I'm an 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 ...
0
votes
1answer
520 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
63 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
65 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, ...
1
vote
3answers
281 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
169 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 ...
4
votes
2answers
7k 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 ...
7
votes
1answer
4k 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 ...
2
votes
3answers
4k 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
47 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 ...
3
votes
1answer
2k 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 ...
1
vote
3answers
17k 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
645 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
614 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 ...
4
votes
3answers
2k 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 ...
9
votes
8answers
7k 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
83 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 ...
19
votes
3answers
26k 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
3k 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 ...
5
votes
2answers
191 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 ...
18
votes
9answers
13k 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?