Created
February 18, 2014 02:32
-
-
Save usual-tools/9063588 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 改行コードを調べる (ファイルの先頭3行が表示) | |
cat -e try/layout/index.html | head -3 | |
# 結果。 | |
# 行末が $ であれば LF | |
# 行末が ^M$ であれば CRLF | |
# 行末が ^M であれば CR | |
# 改行コードを LF に変換する | |
nkf -Lu --overwrite try/layout/index.html | |
# 改行コードを CR+LF に変換する | |
nkf -Lw --overwrite try/layout/index.html | |
# 改行コードを CR に変換する | |
nkf -Lm --overwrite try/layout/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment