LoginSignup
11
12

More than 5 years have passed since last update.

Unix→Windowsに改行コード変換

Last updated at Posted at 2016-01-05

参考サイト
http://nishidy.hatenablog.com/entry/2015/07/14/211318

よく使うのでメモ。

Unix→Windowsに改行コード変換

sed -i "s/$/\r/g"

フォルダ内の全てのファイルを
Unix→Windowsに改行コード変換

find ./ -type f | xargs sed -i "s/$/\r/g"

Windows⇨Unixに改行コード変換

find ./ -type f | xargs sed -i 's/\r//'

11
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
12