https://github.com/markruler/settings
Magic Kit
https://github.com/markruler/settings
dotfiles settings
Last synced: about 1 month ago
JSON representation
Magic Kit
- Host: GitHub
- URL: https://github.com/markruler/settings
- Owner: markruler
- Created: 2020-02-29T16:53:37.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T09:01:44.000Z (2 months ago)
- Last Synced: 2025-04-19T12:17:59.867Z (about 1 month ago)
- Topics: dotfiles, settings
- Language: Shell
- Homepage:
- Size: 8.14 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Settings
## CRLF 포함된 파일 찾기
- [1번째](https://stackoverflow.com/questions/73833#answer-73969)
```sh
find . -not -type d -exec file "{}" ";" | grep CRLF
# ./ide/.editorconfig: ASCII text, with very long lines (2299), with CRLF line terminators
# ./ide/jetbrains-intellij.md: Unicode text, UTF-8 text, with CRLF line terminators
# ./ide/eclipse-java-google-style.xml: XML 1.0 document, ASCII text, with CRLF line terminators
```- [2번째](https://stackoverflow.com/questions/73833#answer-3184434)
```sh
grep -Ilr $'\r$' -r .
# ./ide/.editorconfig
# ./ide/jetbrains-intellij.md
# ./ide/eclipse-java-google-style.xml
```## LF <=> CRLF
```sh
file file.txt
# file.txt: Unicode text, UTF-8 text, with CRLF line terminators
```- DOS to Unix
```sh
vim file.txt -c "set ff=unix" -c ":wq"
``````sh
file file.txt
# file.txt: Unicode text, UTF-8 text
```- Unix to DOS
```sh
vim file.txt -c "set ff=dos" -c ":wq"
``````sh
file file.txt
# file.txt: Unicode text, UTF-8 text, with CRLF line terminators
```