Git Product home page Git Product logo

vbs_convert_lf_crlf's Introduction

vbs_convert_LF_CRLF

Banner

Convert from LF to CRLF and vice-versa

Description

Table of Contents

Install

Just grab a copy of this script and store in on your computer.

Usage

Start a DOS prompt, go in the folder where you've save the script and run it like, f.i.,

cscript convert.vbs C:\Data TXT CRLF

or

cscript convert.vbs . TXT CRLF

The script ask three parameters:

  1. The folder to process. Specify a folder or just type a dot (.) for the current folder,
  2. The extension of files to process. If you wish to process every .txt files, just type TXT (case insensitive),
  3. Then the desired line endings. If you wish that all files have Windows line endings, type CRLF. If a file is with Unix line endings, the file will be converted and rewrite. If you wish the opposite, type LF for the third parameter.

Note: the script contains a SILENT_MODE constant; the default value is false. If you wish that the script does his job silently, update the constant like this:

Const SILENT_MODE = false

See

Part of this script is based on the work of Stephen Millard

License

MIT

vbs_convert_lf_crlf's People

Contributors

cavo789 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

tsengyenpeng

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.