Skip to content

Repository files navigation

FixEol

dotnet-core-build dotnet-core-release

FixEol normalizes line endings for one or more files, directories, or wildcard patterns.

Click here for the latest release.

Examples

FixEol --recursive --eol crlf *.css *.js
FixEol --eol lf --encoding utf8 README.md
FixEol /r /backup src\*.cs
FixEol --encoding utf8 --eol crlf -r *.code-workspace *.cs *.csproj *.bat -exclude specific-file.bat

Usage

FixEol [options] "file-patterns" ["file-patterns"] [...]

File patterns can be specific files, directories, or wildcards. Use --recursive, -r, or -s to apply patterns to subdirectories.

Options

  • --eol [os|crlf|cr|lf|\r\n|\r|\n] chooses the output line ending. The default is os.
  • --encoding [os|ascii|ansi|utf32|utf32bom|utf7|utf8|utf8bom|unicode|windows1252|win1252] chooses the output encoding. The default is os.
  • --recursive, -r, -s scans subdirectories.
  • --exclude [pattern] skips matching file names or paths. Repeat it for multiple excludes; excludes win over include patterns.
  • --backup keeps the original file as .bak.
  • --progress prints per-file progress.
  • --verbose prints additional processing details.
  • --pause waits for a key before exiting.
  • --help, -?, -h, or help prints usage.
  • -v prints the version; --version prints full app metadata.

On Windows, options can use -, --, or / prefixes. Use ! to turn off a boolean option from the command line, for example --!verbose.

Environment Variables

Command-line arguments override environment variables. Use semicolons to separate multiple fixeol_exclude patterns.

  • fixeol_eol
  • fixeol_encoding
  • fixeol_recursive
  • fixeol_exclude
  • fixeol_backup
  • fixeol_progress
  • fixeol_verbose
  • fixeol_pause

About

Fixes the line-endings of the specified file(s). The line-ending used can be specified via the command-line.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages