◆WindowsやMacで作成したファイルをUnix上で扱う際の、改行コードの変換方法です。 ●改行コード ・Unix : \n ・Windows : \r\n ・Macintosh: \r ●Perlを使っての改行コード変換コマンド ・Windows → Unix % perl -pe 's/\r\n/\n/' input-file > output-file ・Unix → Windows % perl -pe 's/\n/\r\n/' input-file > output-file ・Macintosh → Unix % perl -pe 's/\r/\n/g' input-file > output-file ・Windows → Unix % perl -pe 's/\n/\r/' input-file > output-file ●Unix上で、viを使った変換方法 ・W