<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>行末のCRLFを消してLFだけにする perl -i -lpe 'BEGIN{$/=&quot;\r\n&quot;}' a.txt -lは入力を自動chompする。 chompは行末のセパレータを削除する。 セパレータは$/で定義されている。 参考：[Perl]小話：多くの人に誤解されている chomp 君の地位を向上させてみる - スポンサー広告Perl $/=&quot;\r\n&quot; とすることで、改行コードCRLFが切り落とされ、LFをつけて出力されるようになる。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20131110%2FCR&quot; title=&quot; 文字列の改行コードをCRLFからLFにする - 揮発性のメモ２&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-11-10 00:00:00</published>
  <title> 文字列の改行コードをCRLFからLFにする</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20131110/CR</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
