dos2unix Questions

11

I have some shell scripts created on Windows. I want to run dos2unix on them. I have read that dos2unix works on Linux. Is there a way that I can convert my files to having Unix newlines while work...
Trafficator asked 4/12, 2013 at 6:43

11

Solved

I have to convert an entire directory using dos2unix. I am not able to figure out how to do this.
Grum asked 13/8, 2012 at 6:55

4

Solved

I exported results in a text file from a program running on Windows 7, and copied the file on Xubuntu 14.04. In a terminal, I ran dos2unix file.txt, which tells me converting file out_mapqtl.txt to...
Pash asked 23/5, 2014 at 11:54

3

Solved

I have a vb.net (visual studio 2010) project that is version controlled with git (1.7.10.msysgit.1). I made a mistake of leaving core.autocrlf to true in git. Now I have set core.autocrlf to false,...
Gemini asked 9/5, 2012 at 11:1

1

Solved

I am currently having an issue where my script is failing when trying to execute the dos2unix command on a file. This is what I have in the script: dos2unix -n data/file data/tmp_file dos2unix: B...
Dympha asked 13/12, 2018 at 14:6

3

Solved

I download a file from the OECD http://stats.oecd.org/Index.aspx?datasetcode=CRS1 ('CRS 2013 data.txt') by selecting Export-> Related files. I want to work with this file in Ubuntu (14.04 LTS). Wh...
Pearlpearla asked 28/4, 2015 at 15:11

1

Solved

I am using dos2unix *.sh to convert all the .sh files in the current directory. So how to convert all the .sh files in the subfolders as well? I tried this but it does not work for bash: How to ...
Macmillan asked 8/12, 2017 at 10:9

3

Solved

The intent of this question is to be a canonical that covers all sorts of questions whose answer boils down to "you have DOS line endings being fed into a Unix tool". Anyone with a relate...
Barbette asked 19/8, 2017 at 14:8

4

Solved

I've got a Git repository that has some files with DOS format (\r\n line endings). I would like to just run the files through dos2unix (which would change all files to UNIX format, with \n line end...
Visualize asked 18/3, 2010 at 0:54

5

Solved

When running dos2unix on a file I get the following printed to the terminal dos2unix: converting file <filename> to UNIX format ... In my attempt to suppress the output by sending it to /d...
Kola asked 13/7, 2014 at 7:22

5

Solved

I am having several files which I want to convert from Dos to Unix. Is there any API or method which will help me to do this?
Overcasting asked 21/2, 2012 at 9:24

2

Solved

By default it is not supposed to affect binary files. I tested it in a folder with images and although most images were not affected, a few were. If dos2unix cannot tell a binary file from a text ...
Cleodell asked 14/12, 2015 at 0:3

8

Solved

I have several hundred GB of data that I need to paste together using the unix paste utility in Cygwin, but it won't work properly if there are windows EOL characters in the files. The data may or ...
Mcmann asked 17/3, 2011 at 23:30

2

I need to convert a file from DOS to Unix in PowerShell. I know this can be very much easily done in Unix: dos2unix file newfile
Corinacorine asked 18/8, 2015 at 5:9

3

Solved

I got into an argument over on SuperUser.com about useless answers and found myself challenging the other poster to answer the question in brainfuck. He didn't take me up on it, but now I'm curious...
Ieyasu asked 7/10, 2009 at 15:12

2

I have been using d2u to convert line endings. After installing Puppy Linux I noticed that it does not come with d2u, but dos2unix. Then I noticed that Ubuntu is missing both by default. What...
Sunward asked 27/5, 2013 at 8:1

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

3

Solved

In Windows PowerShell: echo "string" > file.txt In Cygwin: $ cat file.txt :::s t r i n g $ dos2unix file.txt dos2unix: Skipping binary file file.txt I want a simple "string" in the file. ...
Wadewadell asked 17/11, 2011 at 8:11

4

Solved

I have a bunch of xml files in a directory that need to have the dos2unix command performed on them and new files will be added every so often. I Instead of manually performing dos2unix command on ...
Buchalter asked 2/7, 2012 at 10:39

2

Solved

I have an application that is developed in a Windows environment. The application itself gets deployed to a Linux environment. Each time I deploy this application I have to convert executable files...
Drysalter asked 29/1, 2010 at 13:45

2

Solved

How do I do unix2dos (or dos2unix) with ant. I.e. I want to change the newlines from linux newlines (if any) to dos newlines
Houseless asked 16/3, 2009 at 11:47

7

Solved

Question says it all, I've got a 500,000 line file that gets generated as part of an automated build process on a Windows box and it's riddled with ^M's. When it goes out the door it needs to...
Couture asked 24/11, 2008 at 0:41

2

Solved

I was wondering if anyone here had some experience writing this type of script and if they could give me some pointers. I would like to modify this script to validate that the check-in file does n...
Zaragoza asked 7/9, 2008 at 16:32
1

© 2022 - 2024 — McMap. All rights reserved.