UNIX/MS系 改行コード

自分用まとめ

DOS/Windows
CR+LF / \r\n
UNIX
LF / \n



なので、Windows上のテキストファイルをLinuxで使う場合には
転送後に

tr -d "\r" < windows.txt > unix.txt

もしくは、vi上で

%s#\r##g