Git Product home page Git Product logo

dos2unix's Introduction

Utility for Windows to read text files with CRLF and strip the CR character. I know there are a bunch out there, but they didn't seem to work for me. For example, tr created 2 byte output for each character, and include a BOM. So here is my very simple version.

There are utils for unix, but this had to be run on Windows.

C:> dos2unix.exe
dos2unix by Lee Patterson http://axorion.com
Strips CR (0x0D) from text files.
Usage: dos2unix [-v] source destination
-v = verbose

C:> dos2unix.exe -v .\a.txt .\b.txt
in : 6C (108) l
out: 6C (108) l
in : 73 (115) s
out: 73 (115) s
in : 20 (32)
out: 20 (32)
in : 2D (45) -
out: 2D (45) -
in : 61 (97) a
out: 61 (97) a
in : 0D (13) .<stripped>
in : 0A (10) .
out: 0A (10) .
in : 6C (108) l
out: 6C (108) l
in : 73 (115) s
out: 73 (115) s
in : 20 (32)
out: 20 (32)
in : 2D (45) -
out: 2D (45) -
in : 6C (108) l
out: 6C (108) l
in : 0D (13) .<stripped>
in : 0A (10) .
out: 0A (10) .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.