Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fix line endings recursively in all the files in the current directory with a single command!

License

NotificationsYou must be signed in to change notification settings

iamtraction/eol-ender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fix line endings recursively in all the files in the current directory with a single command!

What does this do exactly?

This script changes the EOL characters in all files (optionally with a specified extention) toLF.It doesn't touch.ps,.bat,.cmd or.btm files as they are DOS specific files and should haveCRLF line endings.

Requirements

Usage

ender.py [DIRECTORY] [EXTENSION]

Arguments

  • 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.

Examples

  1. Fix line endings for all files inside the current directory (and subdirectories).
ender.py
  1. Fix line endings for all files inside theparser directory (and its subdirectories).
ender.py parser
  1. Fix line endings for all files, with.go extention, inside the current directory (and subdirectories).
ender.py . go
  1. Fix line endings for all files, with.prism extention, inside theexamples directory (and its subdirectories).
ender.py examples prism

Notes

To download this script,Right-Click here and clickSave Link As... and save the file.

Feel free to open issues and/or pull requests if you want to contribute.

About

Fix line endings recursively in all the files in the current directory with a single command!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp