Skip to content

Mass-change, or simply print out, the end-of-line (newline) types of a set of files with this Bash shell script.

License

Notifications You must be signed in to change notification settings

Amethyst-Software/eol-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

EOL Manager

For those who have to deal with text files from different platforms, you may have run into the three competing types of newlines: those used in DOS/Windows, in *nix/macOS, and in the classic Mac OS. EOL Manager was written in order to survey the newline or end-of-line (EOL) types of a group of files, and then selectively change those EOL types. This script requires 'dos2unix' to run.

The full documentation for the script can be seen by running it without any arguments. The script can be used on a single file, but here's the mass operations you can do with EOL Manager:

  • Print the EOL type for each file in a folder.
  • Print the file names which only have a certain EOL type.
  • Summarize the EOL types found for each of a set of file suffixes.
  • Batch-change all files of one EOL type to another.
  • Only change the files with certain suffixes from one EOL type to another.

Preview

About

Mass-change, or simply print out, the end-of-line (newline) types of a set of files with this Bash shell script.

Topics

Resources

License

Stars

Watchers

Forks

Languages