Fix line endings recursively in all the files in the current directory with a single command!
This script changes the EOL characters in all files (optionally with a specified extention) to LF
.
It doesn't touch .ps
, .bat
, .cmd
or .btm
files as they are DOS specific files and should have CRLF
line endings.
ender.py [DIRECTORY] [EXTENSION]
DIRECTORY
The path (relative or absolute) to the directory in which the files are to be searched. Defaults to the current working directory.
.EXTENSION
If the extension is specified, only the files with this extension will be changed. Defaults to all the files in the current and sub directories.
- Fix line endings for all files inside the current directory (and subdirectories).
ender.py
- Fix line endings for all files inside the
parser
directory (and its subdirectories).
ender.py parser
- Fix line endings for all files, with
.go
extention, inside the current directory (and subdirectories).
ender.py . go
- Fix line endings for all files, with
.prism
extention, inside theexamples
directory (and its subdirectories).
ender.py examples prism
To download this script, Right-Click here and click Save Link As... and save the file.
Feel free to open issues and/or pull requests if you want to contribute.