https://github.com/devkanro/eol
eol is using for changing text's the end of line.
https://github.com/devkanro/eol
Last synced: 1 day ago
JSON representation
eol is using for changing text's the end of line.
- Host: GitHub
- URL: https://github.com/devkanro/eol
- Owner: devkanro
- Created: 2019-08-09T11:24:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T08:54:49.000Z (over 6 years ago)
- Last Synced: 2025-01-03T04:34:13.956Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Support: support/base.go
Awesome Lists containing this project
README
# Description
eol is using for changing text's the end of line.
usage
```Shell
$ eol
A line separators changer for text, it supports crlf(\r\n), lf(\n) and cr(\r).
Usage:
eol [command]
Available Commands:
cr Convert all end of line to cr(\r)
crlf Convert all end of line to crlf(\r\n)
encoding Get all supported encoding
help Help about any command
lf Convert all end of line to lf(\n)
Flags:
-h, --help help for eol
--version version for eol
Use "eol [command] --help" for more information about a command.
```
## Supported encoding
Unicode: utf-8, utf-16b(big-endian), utf-16l(little-endian)
CKJ: gbk, gb18030, big-5, shift-j, euckr
## Auto skip binrary file
`eol` will auto detect binrary files and skip them via finding unicode control char in file.
## Sample
01. Change all files in current work directory's eol to lf(\n), eol will try all encoding for those files.
```
$ eol lf .
```
02. Change all files in 'dir' and file 'text01.txt' 'text02.txt' to crlf(\r\n), read those file as utf-8 encoding.
```Shell
$ eol crlf -e utf8 ./dir text01.txt text02.txt
```