<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>frontline</author_name>
  <author_url>https://blog.hatena.ne.jp/frontline/</author_url>
  <blog_title>misc.log</blog_title>
  <blog_url>https://www.backyrd.net/</blog_url>
  <categories>
    <anon>Windows</anon>
    <anon>プログラミング</anon>
    <anon>業務日誌</anon>
  </categories>
  <description>仕事で、改行コードにLFが使われたShift-JISテキストファイルの改行コードを、全てCR+LFに置き換える処理をササッと作る必要が出てきました。それも処理を記述するのは「バッチファイルの中」ww。やり方はいろいろあるとおもいますが、なるべく変更作業を大きくしたくなかったので、PowerShellの「Get-Content」が、ファイル読み込み時に改行コードLFであっても改行として読み込むことと、「Set-Content」が出力ファイルの改行コードをCRLFにすることを利用して、「Get→Set」でファイルを読み書きする過程で改行コード変換をさせることにしました。バッチファイルからPower…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.backyrd.net%2Fentry%2F20240118%2F1705557312&quot; title=&quot;PowerShellでテキストファイルの改行コードLFをCRLFに変更する - misc.log&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://m.media-amazon.com/images/I/51rUe1rp+9L._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-01-18 14:55:12</published>
  <title>PowerShellでテキストファイルの改行コードLFをCRLFに変更する</title>
  <type>rich</type>
  <url>https://www.backyrd.net/entry/20240118/1705557312</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
