Questions tagged [crlf]
14 questions
12
votes
4 answers
Is there a way to quickly identify files with Windows or Unix line termination?
I know we can use dos2unix to convert between Windows and Unix line termination. I am wondering if there is any command that can tell me if a file has Windows or Unix line termination?
Oliver
- 275
- 1
- 3
- 6
4
votes
2 answers
How does git track changes, why does it get confused? Because I do
I have a git repository on a Dropbox folder, shared between a Linux machine and a Windows machine. I try to sync only on the Windows machine, because I am aware of "issues" that may arise. Occasionally I do a small commit on the Linux box, though,…
towi
- 393
2
votes
1 answer
Why does telnet send CRLF when I press enter?
On the telnet provided with my system (Debian), line feeds (\n) seem to be translated to CRLF (\r\n). Specifically, if I run, e.g., netcat -l -p 3334 > file and run echo a | telnet localhost 3334 in another terminal, then do hexdump file, I…
a3nm
- 1,335
1
vote
1 answer
Remove windows line endings (crlf) on basic windows 7 install?
Is there a way to remove windows line endings on a basic windows 7 install. I'm working on a windows 7 computer with notepad and word 2010 at work. I'm trying to demo markdown without installing additional text editor, and keeping it installed…
Marc K
- 113
1
vote
1 answer
Terminal application that appends CR to incoming LF's on COM
Is there any windows based terminal application that has a setting to allow carriage returns to be added to line feeds that come in from a COM port?
I am currently using HyperTerminal and as far as I can work out this does not provide this.
Or to…
Toby
- 876
1
vote
1 answer
what's the downside to leaving ascii files with LF line endings in Windows
I'm collaborating on a Git project that has developers on OSX, Linux and Windows. I've set my autocrlf setting to auto which means that it converts the line endings to CRLF as it pulls them down to my Windows system and then should commit them with…
Jonathan Day
- 1,641
1
vote
2 answers
How can I make grep use CRLF (and not LF) as a newline?
I need to grep through a file where not only are lines terminated by a CRLF, but they might also have several LFs on each line. How can I make grep ignore LFs unless there's a CR in front of them? FYI, I'm using OS X, so it would be helpful to…
Jason Baker
- 8,932
1
vote
0 answers
Modifying Notepad++ spaces/tab/crlf views?
Menu item View/Show Symbol has 3 choices*:
Show white space and tab
Show end of line
Show all characters
These do not do what I want. Is there a possibility to**:
Shows tabs and CR/LF but not spaces?
Display something else for CR and LF then the…
Jan Doggen
- 4,657
0
votes
1 answer
Edit file in-place without modifying line endings
I need to modify sources under Git version control. The sources are Visual Studio project files, which makes them native Microsoft. I want to avoid whitespace issues, including line ending games.
I looked at the files before the modification under…
jww
- 12,722
0
votes
1 answer
Powershell overruling Perl binmode?
I have a Perl script which creates a binary file while scanning a very large text file. It outputs to STDOUT which I redirect in the commandline to a file.
To optimize it I'm making changes then seeing how low it takes to run. On Linux for this I…
hippietrail
- 4,605
0
votes
1 answer
How to set Notepad2 to use Unix newlines (LF) by default
Each time I create a new file in Notepad2, the default line break is
Windows-style:
a carriage return (CR) followed by a line feed (LF).
How can I instead set Unix-style line endings (LF) as default?
Henke
- 1,261
0
votes
1 answer
Change row delimiter for a specific column in Excel
I have a excel file which contains data as below.
+-------+----------+-------------------------+-----------+
| ID | Material | Description | Attribute |
+-------+----------+-------------------------+-----------+
| 10189 | Plate |…
Avinash
- 103
0
votes
1 answer
Why are new lines (CRLF) removed when a search-and-replace is performed?
Regex - :\s|,\s|,|\s|/|\\|\&|\$|"|%
Also tried [:\s,\s,\s/\\\&\$"%] with the same results.
I have marked replacement characters for a visual view to make sure.
0
votes
1 answer
Capturing one instance of a regex search
I am trying to use Regex to search between the start of the report to the start of the next report further down the same file, capture the report as a whole, then use that to search for duplicates, and remove them.
They are broken up by CRLFs and I…