wikiti
4/3/2017 - 12:46 PM

Convert CRLF line endings to LF.

Convert CRLF line endings to LF.

# Convert a file

## Usage
dos2unix < inputfile > outputfile

## Example
dos2unix \
  < app/controllers/application_controller.rb \
  > app/controllers/application_controller.rb


# Convert a whole folder

## Usage
find {folder} -type f -exec dos2unix {} \;

## Example
find ./app -type f -exec dos2unix {} \;