<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nodamushi</author_name>
  <author_url>https://blog.hatena.ne.jp/nodamushi/</author_url>
  <blog_title>プログラムdeタマゴ</blog_title>
  <blog_url>https://nodamushi.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
    <anon>雑記</anon>
  </categories>
  <description>ディレクトリ内のファイルがメモ帳で改行が表示されない形式（LFかCR）だからCR+LFのWindows形式に一括変換したい。しかし、sedはおろか、shell環境も、エディタもない。メモ帳程度。ハゲそう。 そんなときでもPowerShellさえあれば、一括変換出来るので、メモメモ。 Windows形式（CR+LF）に変換 以下を実行すると、全てのファイルやディレクトリに対して処理するので注意。特定のファイルだけにしたい場合は後述のfilterを使う。 ls | foreach{ (cat $_) -join &quot;`r`n&quot; | set-content $_ } なお、文字コードは元のファイルが何…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnodamushi.hatenablog.com%2Fentry%2F2017%2F12%2F14%2F221801&quot; title=&quot;Windowsでフォルダ内のファイルの改行コードを一括変換 - プログラムdeタマゴ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/61pLrWCOvdL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-14 22:18:01</published>
  <title>Windowsでフォルダ内のファイルの改行コードを一括変換</title>
  <type>rich</type>
  <url>https://nodamushi.hatenablog.com/entry/2017/12/14/221801</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
