end-of-line Questions
9
I'm a Java developer and I'm using Ubuntu to develop. The project was created in Windows with Eclipse and it's using the Windows-1252 encoding.
To convert to UTF-8 I've used the recode program:
fin...
Kush asked 8/10, 2010 at 13:37
8
Solved
How can I remove the ^M character from a text file (at the end of line) in a Python script?
I did the following, and there are ^M at every line-break.
file = open(filename, "w")
file.write(someth...
Committeewoman asked 7/7, 2010 at 1:23
1
Some members of my team use Mac, some use Linux and others use Windows.
We started to use prettier --write before pushing changes to ensure uniformity in code style. The problem occurs on Windows, ...
Tait asked 10/6, 2022 at 18:23
12
I have string like this
"hello
java
book"
I want remove \r and \n from String(hello\r\njava\r\nbook). I want the result to be "hellojavabook". How can I do this?
Actor asked 27/2, 2009 at 6:5
10
Solved
We would like to use Visual Studio 2005 to work on a local copy of an SVN repository. This local copy has been checked out by Mac OS X (and updates and commits will only be made under Mac OS X, so ...
Spittoon asked 27/9, 2010 at 9:14
7
How do I convert all EOL (dos->unix) of all files in a directory and sub-directories recursively without dos2unix? (I do not have it and cannot install it.)
Is there a way to do it using tr -d '\r...
Marcmarcano asked 17/5, 2012 at 2:50
2
On my project i use computers with different OS, one is Mac second is with windows. When I use git every change is shown as whole document change. The reason is different end-of-line in these two O...
Kcal asked 12/10, 2016 at 9:28
6
Solved
How would you go about breaking up a textarea value into an array, based on the end of line separation? Use of jQuery is cool by me...
Ivatts asked 19/2, 2010 at 21:13
4
Solved
Hi i am trying to put end of line code in CSV format to import it to excel I tried putting
\n, "\n", \r, "\r", \r\n, "\r\n" but nothing worked for me I am trying to import it in excel 2013 my csv f...
Aquiline asked 8/3, 2017 at 8:28
2
Solved
novice here.
I am trying to read lines from a file, however a single line in a .txt file has a \n in the middle somewhere and while trying to read that line with .readline python cuts it in the mi...
Constitute asked 23/8, 2018 at 7:49
7
Solved
MySQL has a nice CSV import function LOAD DATA INFILE.
I have a large dataset that needs to be imported from CSV on a regular basis, so this feature is exactly what I need. I've got a working scri...
Archaeopteryx asked 7/6, 2012 at 15:44
5
Solved
A remote git repository is just cloned to a local box using Atlassian SourceTree. Even no files have really been modified in the work tree, Atlassian lists a bunch of files right away under "Uncomm...
Bronco asked 11/4, 2013 at 20:39
3
Solved
Like the title says I'm trying to read an unknown number of integers from a file and place them in a 2d array.
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
...
Mcgrew asked 14/12, 2015 at 18:42
1
I am working in a windows-only working environment with developers using all kinds of tools to edit their files. We are using .git along with the atlassian stack to version our code. I like almost ...
Nunciata asked 3/9, 2015 at 10:41
6
Solved
I need to convert the text file to dos format (ending each line with 0x0d0x0a, rather than 0x0a only), if the file is in unix format (0x0a only at the end of each line).
I know how to convert it (...
Windbound asked 6/8, 2013 at 15:31
2
Solved
I have a single view whose only UI element is a UITextView. In viewDidLoad: I create an attributed string with "Text\n" and set the text view's attributed text as such:
NSAttributedString *string ...
Engrail asked 24/3, 2013 at 2:22
4
Solved
Am using the RODBC library to bring data into R. I have a long query that I want to pass a variable to, much like this SO user.
Problem is that R interprets the whitespace/carriage returns in my ...
Cleavers asked 14/11, 2012 at 18:2
2
Solved
I've had these functions in my .emacs.el file for years:
(defun dos2unix ()
"Convert a DOS formatted text buffer to UNIX format"
(interactive)
(set-buffer-file-coding-system 'undecided-unix nil...
Filip asked 4/11, 2009 at 15:20
1
Solved
I have a source repository that is used both from Windows and Linux.
I know that Git will automatically convert EOL to the local standard: \r\n on Windows and \n on Linux.
This is not an issue fo...
Etruscan asked 27/1, 2014 at 0:37
3
Solved
I would like to enforce Unix style end-of-line (\n) in Java sources of our projects for consistency reasons. As many of us work under Windows, most IDEs are configured by default to use Windows sty...
Kowal asked 21/2, 2013 at 13:47
1
Solved
I've been learning how to do more complex search and replace functions in VIM, and I ran across a use case like this:
:%s/$/|/g
This supposedly finds the end of every line and replaces it with a...
Heedless asked 18/12, 2012 at 19:32
5
Solved
I never remember whether ^ matches the beginning of the line and $ matches the end of it or the other way around. A good mnemonic would be that the $ sign is always before the price, therefore it m...
Demoss asked 3/9, 2012 at 14:24
1
Solved
Is there a way to make \n or \r characters visible in vim? (I want to be able to see if the csv file I am looking at uses just \n or \r and \n at the end of lines.
Hydrotherapeutics asked 15/5, 2012 at 14:34
2
Solved
We know that when inserting \n in a file stream, the appropriate end-of-line sequence for the system will be written to the file (e.g. \r\n for Windows). Does inserting an endline in a std::strings...
Greengage asked 28/7, 2011 at 20:41
3
I have a file that looks like this:
J6 INT-00113G 227.905 5.994 180 ~!@#$%&^)
J3 INT-00113G 227.905 -203.244 180 12341341312315
U13 EXCLUDES -42.210 181.294 180 QFP128
U3 IC-00276G 5.135 198.6...
Epigenesis asked 25/7, 2011 at 21:3
1 Next >
© 2022 - 2024 — McMap. All rights reserved.