The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
14 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
48 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
16 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 ...
0
votes
1answer
72 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
172 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 ...
24
votes
1answer
3k 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 ...
1
vote
1answer
3k 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
148 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
90 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
3answers
715 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
462 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 ...
5
votes
4answers
10k 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 ...
11
votes
1answer
9k 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 ...
5
votes
3answers
7k 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
49 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 ...
4
votes
1answer
3k 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 ...
7
votes
3answers
36k 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
938 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
708 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
4answers
3k 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 ...
13
votes
9answers
13k 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
88 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\...
27
votes
3answers
38k 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 ...
6
votes
2answers
300 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 ...
24
votes
10answers
20k 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?